[bug] Rename file is broken for files that are existing #19

This commit is contained in:
2024-09-28 17:28:47 -05:00
parent 9aecec2d96
commit 439f9cce3d
5 changed files with 87 additions and 98 deletions

View File

@ -409,10 +409,10 @@ public:
i_provider &provider_;
private:
bool cancelled_ = false;
api_error error_ = api_error::success;
bool cancelled_{false};
api_error error_{api_error::success};
std::unique_ptr<std::thread> thread_;
stop_type stop_requested_ = false;
stop_type stop_requested_{false};
private:
void upload_thread();

View File

@ -86,7 +86,6 @@ enum class api_error {
out_of_memory,
permission_denied,
upload_failed,
upload_stopped,
xattr_buffer_small,
xattr_exists,
xattr_not_found,
@ -94,7 +93,7 @@ enum class api_error {
ERROR_COUNT
};
[[nodiscard]] auto api_error_from_string(std::string_view s) -> api_error;
[[nodiscard]] auto api_error_from_string(std::string_view str) -> api_error;
[[nodiscard]] auto
api_error_to_string(const api_error &error) -> const std::string &;