From e0cf58b01e9b90fe7b583b3c4aa0ea2a8b057fab Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 4 Apr 2025 12:24:17 -0500 Subject: [PATCH] debugging --- .../include/drives/remote/remote_server_base.hpp | 1 + .../src/drives/fuse/remotefuse/remote_server.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/repertory/librepertory/include/drives/remote/remote_server_base.hpp b/repertory/librepertory/include/drives/remote/remote_server_base.hpp index 32c09d78..91783588 100644 --- a/repertory/librepertory/include/drives/remote/remote_server_base.hpp +++ b/repertory/librepertory/include/drives/remote/remote_server_base.hpp @@ -142,6 +142,7 @@ public: granted_access, attributes, allocation_size, &file_desc, &file_info, normalized_name, exists); + fmt::println("{}|{}", file_name, exists); if (ret == STATUS_SUCCESS) { #if defined(_WIN32) this->set_client_id(file_desc, client_id); diff --git a/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp b/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp index 324309ea..c3a364e9 100644 --- a/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp +++ b/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp @@ -1122,11 +1122,12 @@ auto remote_server::winfsp_create(PWSTR file_name, UINT32 create_options, auto relative_path = utils::string::to_utf8(file_name); auto file_path = construct_path(relative_path); - exists = utils::file::file{file_path}.exists() || - utils::file::directory{file_path}.exists(); + 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 (not exists) { + if (exists == 0U) { if ((create_options & FILE_DIRECTORY_FILE) != 0U) { attributes |= FILE_ATTRIBUTE_DIRECTORY; } else {