diff --git a/repertory/librepertory/include/drives/remote/remote_server_base.hpp b/repertory/librepertory/include/drives/remote/remote_server_base.hpp index da2f54c3..cdd93e52 100644 --- a/repertory/librepertory/include/drives/remote/remote_server_base.hpp +++ b/repertory/librepertory/include/drives/remote/remote_server_base.hpp @@ -142,16 +142,18 @@ public: granted_access, attributes, allocation_size, &file_desc, &file_info, normalized_name, exists); - fmt::println("{}|{}", utils::string::to_utf8(file_name), exists); if (ret == STATUS_SUCCESS) { + if (exists == 0U) { #if defined(_WIN32) - this->set_client_id(file_desc, client_id); + this->set_client_id(file_desc, client_id); #else // !defined(_WIN32) - this->set_client_id( - static_cast( - reinterpret_cast(file_desc)), - client_id); + this->set_client_id( + static_cast( + reinterpret_cast(file_desc)), + client_id); #endif // defined(_WIN32) + } + response.encode(file_desc); response.encode(file_info); response.encode(normalized_name); diff --git a/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp b/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp index c3a364e9..5740e304 100644 --- a/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp +++ b/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp @@ -1124,8 +1124,6 @@ auto remote_server::winfsp_create(PWSTR file_name, UINT32 create_options, auto file_path = construct_path(relative_path); exists = static_cast(utils::file::file{file_path}.exists() || utils::file::directory{file_path}.exists()); - fmt::println("{}|{}", file_path, exists); - auto ret{static_cast(STATUS_SUCCESS)}; if (exists == 0U) { if ((create_options & FILE_DIRECTORY_FILE) != 0U) {