DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Functions | |
bool | is_writable (const oks::OksFile &file, const std::string &user=oks::OksKernel::get_user_name()) |
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.