debugging

This commit is contained in:
Scott E. Graves 2025-04-04 12:24:17 -05:00
parent 281d3758e0
commit e0cf58b01e
2 changed files with 5 additions and 3 deletions

View File

@ -142,6 +142,7 @@ public:
granted_access, attributes, granted_access, attributes,
allocation_size, &file_desc, &file_info, allocation_size, &file_desc, &file_info,
normalized_name, exists); normalized_name, exists);
fmt::println("{}|{}", file_name, exists);
if (ret == STATUS_SUCCESS) { if (ret == STATUS_SUCCESS) {
#if defined(_WIN32) #if defined(_WIN32)
this->set_client_id(file_desc, client_id); this->set_client_id(file_desc, client_id);

View File

@ -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 relative_path = utils::string::to_utf8(file_name);
auto file_path = construct_path(relative_path); auto file_path = construct_path(relative_path);
exists = utils::file::file{file_path}.exists() || exists = static_cast<BOOLEAN>(utils::file::file{file_path}.exists() ||
utils::file::directory{file_path}.exists(); utils::file::directory{file_path}.exists());
fmt::println("{}|{}", file_path, exists);
auto ret{static_cast<packet::error_type>(STATUS_SUCCESS)}; auto ret{static_cast<packet::error_type>(STATUS_SUCCESS)};
if (not exists) { if (exists == 0U) {
if ((create_options & FILE_DIRECTORY_FILE) != 0U) { if ((create_options & FILE_DIRECTORY_FILE) != 0U) {
attributes |= FILE_ATTRIBUTE_DIRECTORY; attributes |= FILE_ATTRIBUTE_DIRECTORY;
} else { } else {