DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::oksutils::access Namespace Reference

Functions

bool is_writable (const oks::OksFile &file, const std::string &user=oks::OksKernel::get_user_name())
 

Function Documentation

◆ is_writable()

bool dunedaq::oksutils::access::is_writable ( const oks::OksFile & file,
const std::string & user = oks::OksKernel::get_user_name() )

The function tests write access to database file.

If the file is stored on OKS server repository, it checks access permissions using Access Manager service. In this case optional user name can be provided instead of current user taken by default.

Otherwise it checks file system directory permissions for current user.

Definition at line 8 of file oks_access.cpp.

10{
11 return true;
12}