[bug] Directories are not importing properly for Sia #43
This commit is contained in:
parent
533938bcef
commit
4f2ee2ad99
@ -367,10 +367,15 @@ auto sia_provider::get_file_list(api_file_list &list,
|
|||||||
bool exists{};
|
bool exists{};
|
||||||
auto res{is_directory(entry_api_path, exists)};
|
auto res{is_directory(entry_api_path, exists)};
|
||||||
if (res != api_error::success) {
|
if (res != api_error::success) {
|
||||||
|
utils::error::raise_api_path_error(
|
||||||
|
function_name, entry_api_path, res,
|
||||||
|
"failed detect existing directory");
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (not exists) {
|
if (not exists) {
|
||||||
|
utils::error::raise_api_path_error(
|
||||||
|
function_name, entry_api_path, res, "directory not found");
|
||||||
return api_error::directory_not_found;
|
return api_error::directory_not_found;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user