소스 검색

fuse: remove unneeded safe_encode

fsencode will happen in _find_inode()
Thomas Waldmann 8 년 전
부모
커밋
34eb475463
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/borg/fuse.py

+ 1 - 2
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: