This commit is contained in:
Scott E. Graves 2024-10-02 11:40:12 -05:00
parent 42a81b1c8e
commit 781278df06

View File

@ -564,7 +564,7 @@ auto file_manager::remove_file(const std::string &api_path) -> api_error {
.equals(api_path)
.go();
if (not result.ok()) {
utils::error::raise_api_path_error(function_name, to_api_path,
utils::error::raise_api_path_error(function_name, api_path,
"failed to remove from resume table");
}
@ -599,6 +599,10 @@ void file_manager::remove_upload(const std::string &api_path) {
}
void file_manager::remove_upload(const std::string &api_path, bool no_lock) {
static constexpr const std::string_view function_name{
static_cast<const char *>(__FUNCTION__),
};
if (provider_.is_direct_only()) {
return;
}