updated build system
This commit is contained in:
@ -181,14 +181,11 @@ auto encrypt_provider::do_fs_operation(
|
|||||||
callback) const -> api_error {
|
callback) const -> api_error {
|
||||||
auto cfg = config_.get_encrypt_config();
|
auto cfg = config_.get_encrypt_config();
|
||||||
std::string source_path{api_path};
|
std::string source_path{api_path};
|
||||||
if (api_path != "/") {
|
if (api_path != "/" && not utils::encryption::decrypt_file_path(
|
||||||
auto res =
|
cfg.encryption_token, source_path)) {
|
||||||
utils::encryption::decrypt_file_path(cfg.encryption_token, source_path);
|
|
||||||
if (res != api_error::success) {
|
|
||||||
return directory ? api_error::directory_not_found
|
return directory ? api_error::directory_not_found
|
||||||
: api_error::item_not_found;
|
: api_error::item_not_found;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
source_path = utils::path::combine(cfg.path, {source_path});
|
source_path = utils::path::combine(cfg.path, {source_path});
|
||||||
if (source_path != cfg.path &&
|
if (source_path != cfg.path &&
|
||||||
|
Reference in New Issue
Block a user