Client: add AllowFile() overload which throws exception
This commit is contained in:
@@ -176,9 +176,12 @@ public:
|
||||
* We cannot fix this as long as there are plugins that open a file by
|
||||
* its name, and not by file descriptor / callbacks.
|
||||
*
|
||||
* Throws #std::runtime_error on error.
|
||||
*
|
||||
* @param path_fs the absolute path name in filesystem encoding
|
||||
* @return true if access is allowed
|
||||
*/
|
||||
void AllowFile(Path path_fs) const;
|
||||
|
||||
bool AllowFile(Path path_fs, Error &error) const;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user