Compare commits

...

2 Commits

Author SHA1 Message Date
a613ec77ff debugging
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
2025-04-04 13:23:45 -05:00
00d3dd95a8 update 2025-04-04 13:22:45 -05:00

View File

@ -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<BOOLEAN>(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<packet::error_type>(STATUS_SUCCESS)};
if (exists == 0U) {
if ((create_options & FILE_DIRECTORY_FILE) != 0U) {
@ -1167,6 +1169,7 @@ auto remote_server::winfsp_create(PWSTR file_name, UINT32 create_options,
utils::unix_error_to_windows((res < 0) ? errno : 0));
}
fmt::println("{}|{}|{}", file_path, exists, ret);
RAISE_REMOTE_FUSE_SERVER_EVENT(function_name, file_path, ret);
return ret;
}