diff options
author | Liryna <liryna.stark@gmail.com> | 2016-11-11 17:53:43 +0100 |
---|---|---|
committer | Liryna <liryna.stark@gmail.com> | 2016-11-11 17:53:43 +0100 |
commit | f43b3a576c3a0d7f21f784c6c39280d2f87b196e (patch) | |
tree | 83b03357c216269d6a32ea76378c503d5ea7e83a | |
parent | 3e0a6cbc22ecdcda828b098d52ba860186d49854 (diff) | |
download | pyfilesystem-git-f43b3a576c3a0d7f21f784c6c39280d2f87b196e.tar.gz |
open as directory if isdir
-rw-r--r-- | fs/expose/dokan/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/expose/dokan/__init__.py b/fs/expose/dokan/__init__.py index d479ea7..1a52074 100644 --- a/fs/expose/dokan/__init__.py +++ b/fs/expose/dokan/__init__.py @@ -432,7 +432,8 @@ class FSOperations(object): return STATUS_ACCESS_DENIED retcode = STATUS_SUCCESS - if info.contents.IsDirectory: + if self.fs.isdir(path) or info.contents.IsDirectory: + info.contents.IsDirectory = True exist = self.fs.exists(path) if disposition == FILE_CREATE: if self.fs.exists(path): |