Skip to content

Commit f43b3a5

Browse files
committed
open as directory if isdir
1 parent 3e0a6cb commit f43b3a5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fs/expose/dokan/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,8 @@ def ZwCreateFile(self, path, securitycontext, access, attribute, sharing, dispos
432432
return STATUS_ACCESS_DENIED
433433

434434
retcode = STATUS_SUCCESS
435-
if info.contents.IsDirectory:
435+
if self.fs.isdir(path) or info.contents.IsDirectory:
436+
info.contents.IsDirectory = True
436437
exist = self.fs.exists(path)
437438
if disposition == FILE_CREATE:
438439
if self.fs.exists(path):

0 commit comments

Comments
 (0)