[bug] Rename file is broken for files that are existing #19
This commit is contained in:
@ -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();
|
||||
|
@ -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 &;
|
||||
|
Reference in New Issue
Block a user