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
acc92b8e
Commit
acc92b8e
authored
Apr 10, 2011
by
rfkelly0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dokan: don't error out on strange values to settime()
parent
52318cbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
fs/expose/dokan/__init__.py
+8
-2
No files found.
fs/expose/dokan/__init__.py
View file @
acc92b8e
...
@@ -602,9 +602,15 @@ class FSOperations(object):
...
@@ -602,9 +602,15 @@ class FSOperations(object):
path
=
normpath
(
path
)
path
=
normpath
(
path
)
# setting ctime is not supported
# setting ctime is not supported
if
atime
is
not
None
:
if
atime
is
not
None
:
atime
=
_filetime2datetime
(
atime
.
contents
)
try
:
atime
=
_filetime2datetime
(
atime
.
contents
)
except
ValueError
:
atime
=
None
if
mtime
is
not
None
:
if
mtime
is
not
None
:
mtime
=
_filetime2datetime
(
mtime
.
contents
)
try
:
mtime
=
_filetime2datetime
(
mtime
.
contents
)
except
ValueError
:
mtime
=
None
# some programs demand this succeed; fake it
# some programs demand this succeed; fake it
try
:
try
:
self
.
fs
.
settimes
(
path
,
atime
,
mtime
)
self
.
fs
.
settimes
(
path
,
atime
,
mtime
)
...
...
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