From a38a0331431718ab1d9ada30d02af2c5dd8c068a Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 7 Nov 2024 14:22:49 -0600 Subject: [PATCH] refactor --- .../include/file_manager/file_manager.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/repertory/librepertory/include/file_manager/file_manager.hpp b/repertory/librepertory/include/file_manager/file_manager.hpp index c4fa7879..6a272ea4 100644 --- a/repertory/librepertory/include/file_manager/file_manager.hpp +++ b/repertory/librepertory/include/file_manager/file_manager.hpp @@ -69,6 +69,8 @@ private: std::unique_ptr upload_thread_; private: + void close_all(const std::string &api_path); + void close_timed_out_files(); auto get_open_file_by_handle(std::uint64_t handle) const @@ -111,8 +113,6 @@ public: public: void close(std::uint64_t handle); - void close_all(const std::string &api_path); - [[nodiscard]] auto create(const std::string &api_path, api_meta_map &meta, open_file_data ofd, std::uint64_t &handle, std::shared_ptr &file) -> api_error; @@ -136,8 +136,8 @@ public: [[nodiscard]] auto has_no_open_file_handles() const -> bool override; - [[nodiscard]] auto - is_processing(const std::string &api_path) const -> bool override; + [[nodiscard]] auto is_processing(const std::string &api_path) const + -> bool override; #if defined(PROJECT_TESTING) [[nodiscard]] auto open(std::shared_ptr of, @@ -150,13 +150,13 @@ public: [[nodiscard]] auto remove_file(const std::string &api_path) -> api_error; - [[nodiscard]] auto - rename_directory(const std::string &from_api_path, - const std::string &to_api_path) -> api_error; + [[nodiscard]] auto rename_directory(const std::string &from_api_path, + const std::string &to_api_path) + -> api_error; [[nodiscard]] auto rename_file(const std::string &from_api_path, - const std::string &to_api_path, - bool overwrite) -> api_error; + const std::string &to_api_path, bool overwrite) + -> api_error; void start();