}
const std::string& path = args.get("path").get<std::string>();
+
+ CHECK_STORAGE_ACCESS(path, &out);
const std::string open_mode = GetFopenMode(args);
FILE* file = nullptr;
try {
double callback_id = args.get("callbackId").get<double>();
const std::string& path = args.get("path").get<std::string>();
bool make_parents = args.get("makeParents").get<bool>();
+ CHECK_STORAGE_ACCESS(path, &out);
this->worker.add_job([this, callback_id, path, make_parents] {
picojson::value response = picojson::value(picojson::object());
double callback_id = args.get("callbackId").get<double>();
const std::string& path = args.get("path").get<std::string>();
+ CHECK_STORAGE_ACCESS(path, &out);
this->worker.add_job([this, callback_id, path] {
picojson::value response = picojson::value(picojson::object());
picojson::object& obj = response.get<picojson::object>();
double callback_id = args.get("callbackId").get<double>();
const std::string& path = args.get("path").get<std::string>();
+
+ CHECK_STORAGE_ACCESS(path, &out);
bool recursive = args.get("recursive").get<bool>();
this->worker.add_job([this, callback_id, path, recursive] {
double callback_id = args.get("callbackId").get<double>();
const std::string& path = args.get("path").get<std::string>();
+ CHECK_STORAGE_ACCESS(path, &out);
const std::string& destination_path = args.get("destinationPath").get<std::string>();
+ CHECK_STORAGE_ACCESS(destination_path, &out);
bool overwrite = args.get("overwrite").get<bool>();
this->worker.add_job([this, callback_id, path, destination_path, overwrite] {
CHECK_PRIVILEGE_ACCESS(kPrivilegeFilesystemRead, &out);
CHECK_PRIVILEGE_ACCESS(kPrivilegeFilesystemWrite, &out);
const std::string& path = args.get("path").get<std::string>();
+ CHECK_STORAGE_ACCESS(path, &out);
const std::string& destination_path = args.get("destinationPath").get<std::string>();
+ CHECK_STORAGE_ACCESS(destination_path, &out);
double callback_id = args.get("callbackId").get<double>();
bool overwrite = args.get("overwrite").get<bool>();
CHECK_PRIVILEGE_ACCESS(kPrivilegeFilesystemWrite, &out);
const std::string& path = args.get("path").get<std::string>();
+ CHECK_STORAGE_ACCESS(path, &out);
const std::string& destination_path = args.get("destinationPath").get<std::string>();
+ CHECK_STORAGE_ACCESS(destination_path, &out);
double callback_id = args.get("callbackId").get<double>();
bool overwrite = args.get("overwrite").get<bool>();
CHECK_PRIVILEGE_ACCESS(kPrivilegeFilesystemWrite, &out);
double callback_id = args.get("callbackId").get<double>();
const std::string& path = args.get("path").get<std::string>();
+ CHECK_STORAGE_ACCESS(path, &out);
const std::string& destination_path = args.get("destinationPath").get<std::string>();
+ CHECK_STORAGE_ACCESS(destination_path, &out);
bool overwrite = args.get("overwrite").get<bool>();
this->worker.add_job([this, callback_id, path, destination_path, overwrite] {
ScopeLogger();
CHECK_PRIVILEGE_ACCESS(kPrivilegeFilesystemWrite, &out);
const std::string& path = args.get("path").get<std::string>();
+
+ CHECK_STORAGE_ACCESS(path, &out);
double callback_id = args.get("callbackId").get<double>();
const std::string& new_name = args.get("newName").get<std::string>();
double callback_id = args.get("callbackId").get<double>();
const std::string& path = args.get("path").get<std::string>();
const picojson::object& filter = args.get("filter").get<picojson::object>();
+ CHECK_STORAGE_ACCESS(path, &out);
this->worker.add_job([this, callback_id, path, filter] {
ScopeLogger();
ScopeLogger();
CHECK_PRIVILEGE_ACCESS(kPrivilegeFilesystemRead, &out);
const std::string& path = args.get("path").get<std::string>();
+
+ CHECK_STORAGE_ACCESS(path, &out);
picojson::value is_file{};
try {
struct stat buf {};
ScopeLogger();
CHECK_PRIVILEGE_ACCESS(kPrivilegeFilesystemRead, &out);
const std::string& path = args.get("path").get<std::string>();
+
+ CHECK_STORAGE_ACCESS(path, &out);
picojson::value is_directory{};
try {
struct stat buf {};
ScopeLogger();
CHECK_PRIVILEGE_ACCESS(kPrivilegeFilesystemRead, &out);
const std::string& path = args.get("path").get<std::string>();
+
+ CHECK_STORAGE_ACCESS(path, &out);
picojson::value does_file_exist = picojson::value{true};
try {
struct stat buf {};