Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pyfs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pyfs
Commits
f5751e45
Commit
f5751e45
authored
Aug 09, 2010
by
rfkelly0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dokan: fix notepad bug by moving file.close() back into CloseFile
parent
8cb6ad8e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
fs/expose/dokan/__init__.py
+5
-6
No files found.
fs/expose/dokan/__init__.py
View file @
f5751e45
...
...
@@ -334,7 +334,11 @@ class FSOperations(DokanOperations):
self
.
_del_file
(
info
.
contents
.
Context
)
finally
:
lock
.
release
()
elif
info
.
contents
.
Context
>=
MIN_FH
:
info
.
contents
.
Context
=
0
@handle_fs_errors
def
CloseFile
(
self
,
path
,
info
):
if
info
.
contents
.
Context
>=
MIN_FH
:
(
file
,
_
,
lock
)
=
self
.
_get_file
(
info
.
contents
.
Context
)
lock
.
acquire
()
try
:
...
...
@@ -345,11 +349,6 @@ class FSOperations(DokanOperations):
info
.
contents
.
Context
=
0
@handle_fs_errors
def
CloseFile
(
self
,
path
,
info
):
if
info
.
contents
.
Context
!=
0
:
raise
FSError
(
"file handle not cleaned up:
%
s"
%
(
path
,))
@handle_fs_errors
def
ReadFile
(
self
,
path
,
buffer
,
nBytesToRead
,
nBytesRead
,
offset
,
info
):
path
=
normpath
(
path
)
(
file
,
_
,
lock
)
=
self
.
_get_file
(
info
.
contents
.
Context
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment