diff --git a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp index 64fa0cd9..af44834e 100644 --- a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp +++ b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp @@ -991,6 +991,10 @@ auto remote_server::winfsp_create(PWSTR file_name, UINT32 create_options, create_flags |= FILE_FLAG_POSIX_SEMANTICS; } + if ((create_options & FILE_DELETE_ON_CLOSE) != 0U) { + create_flags |= FILE_FLAG_DELETE_ON_CLOSE; + } + attributes |= ((create_options & FILE_DIRECTORY_FILE) == 0U ? FILE_ATTRIBUTE_ARCHIVE : FILE_ATTRIBUTE_DIRECTORY);