From ec532304d20f12ec7e09f837d2c1097df71bff79 Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Tue, 13 Jun 2017 23:36:12 +0200 Subject: [PATCH] fuse: remove unnecessary normpaths --- src/borg/fuse.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/borg/fuse.py b/src/borg/fuse.py index f91a30448..a5742e037 100644 --- a/src/borg/fuse.py +++ b/src/borg/fuse.py @@ -166,7 +166,7 @@ class FuseOperations(llfuse.Operations): unpacker.feed(data) for item in unpacker: item = Item(internal_dict=item) - path = os.fsencode(os.path.normpath(item.path)) + path = os.fsencode(item.path) is_dir = stat.S_ISDIR(item.mode) if is_dir: try: @@ -208,14 +208,14 @@ class FuseOperations(llfuse.Operations): if version is not None: # regular file, with contents - maybe a hardlink master name = make_versioned_name(name, version) - path = os.fsencode(os.path.normpath(item.path)) + path = os.fsencode(item.path) self.file_versions[path] = version path = item.path del item.path # safe some space if 'source' in item and hardlinkable(item.mode): # a hardlink, no contents, is the hardlink master - source = os.fsencode(os.path.normpath(item.source)) + source = os.fsencode(item.source) if self.versions: # adjust source name with version version = self.file_versions[source]