Преглед изворни кода

Decode hardlink source path before linking

Jonas Borgström пре 14 година
родитељ
комит
650bd69da5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      darc/archive.py

+ 1 - 1
darc/archive.py

@@ -152,7 +152,7 @@ class Archive(object):
                 os.makedirs(os.path.dirname(path))
                 os.makedirs(os.path.dirname(path))
             # Hard link?
             # Hard link?
             if 'source' in item:
             if 'source' in item:
-                source = os.path.join(dest, item['source'])
+                source = os.path.join(dest, item['source'].decode('utf-8'))
                 if os.path.exists(path):
                 if os.path.exists(path):
                     os.unlink(path)
                     os.unlink(path)
                 os.link(source, path)
                 os.link(source, path)