From 34eb4754639c05d58a6ade8b75986d2dd6eaa495 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 1 Sep 2016 04:33:42 +0200 Subject: [PATCH] fuse: remove unneeded safe_encode fsencode will happen in _find_inode() --- src/borg/fuse.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/borg/fuse.py b/src/borg/fuse.py index 50bbaaff3..bb062b1ca 100644 --- a/src/borg/fuse.py +++ b/src/borg/fuse.py @@ -145,8 +145,7 @@ class FuseOperations(llfuse.Operations): # This can happen if an archive was created with a command line like # $ borg create ... dir1/file dir1 # In this case the code below will have created a default_dir inode for dir1 already. - path = safe_encode(item.path) - inode = self._find_inode(path, prefix) + inode = self._find_inode(item.path, prefix) except KeyError: pass else: