From 00d3dd95a882e6a09b398096f8d61bbbfffe2bf1 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 4 Apr 2025 13:22:45 -0500 Subject: [PATCH] update --- .../src/drives/fuse/remotefuse/remote_server.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp b/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp index 5740e304..271cc273 100644 --- a/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp +++ b/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp @@ -1122,8 +1122,10 @@ 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 = static_cast(utils::file::file{file_path}.exists() || - utils::file::directory{file_path}.exists()); + exists = utils::file::file{file_path}.exists() || + utils::file::directory{file_path}.exists() + ? 1 + : 0; auto ret{static_cast(STATUS_SUCCESS)}; if (exists == 0U) { if ((create_options & FILE_DIRECTORY_FILE) != 0U) {