Compare commits
2 Commits
28d1789f04
...
a613ec77ff
Author | SHA1 | Date | |
---|---|---|---|
a613ec77ff | |||
00d3dd95a8 |
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user