Client: add AllowFile() overload which throws exception

This commit is contained in:
Max Kellermann
2016-10-27 22:04:38 +02:00
parent c598686bd9
commit 726fc53e62
2 changed files with 29 additions and 1 deletions

View File

@@ -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;
/**