Commit 489e8e94 by rfkelly0

fs.expose.fuse: make utimens decode unicode paths; thanks jtolds

parent 31d77d6c
...@@ -360,6 +360,7 @@ class FSOperations(Operations): ...@@ -360,6 +360,7 @@ class FSOperations(Operations):
@handle_fs_errors @handle_fs_errors
def utimens(self, path, times=None): def utimens(self, path, times=None):
path = path.decode(NATIVE_ENCODING)
accessed_time, modified_time = times accessed_time, modified_time = times
if accessed_time is not None: if accessed_time is not None:
accessed_time = datetime.datetime.fromtimestamp(accessed_time) accessed_time = datetime.datetime.fromtimestamp(accessed_time)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment