update
This commit is contained in:
parent
28d1789f04
commit
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 relative_path = utils::string::to_utf8(file_name);
|
||||||
auto file_path = construct_path(relative_path);
|
auto file_path = construct_path(relative_path);
|
||||||
exists = static_cast<BOOLEAN>(utils::file::file{file_path}.exists() ||
|
exists = utils::file::file{file_path}.exists() ||
|
||||||
utils::file::directory{file_path}.exists());
|
utils::file::directory{file_path}.exists()
|
||||||
|
? 1
|
||||||
|
: 0;
|
||||||
auto ret{static_cast<packet::error_type>(STATUS_SUCCESS)};
|
auto ret{static_cast<packet::error_type>(STATUS_SUCCESS)};
|
||||||
if (exists == 0U) {
|
if (exists == 0U) {
|
||||||
if ((create_options & FILE_DIRECTORY_FILE) != 0U) {
|
if ((create_options & FILE_DIRECTORY_FILE) != 0U) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user