mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 08:04:49 +01:00
manager: use absolute path when adding warcs, (#84)
This commit is contained in:
parent
6ce75f80f5
commit
753300d5ed
@ -102,6 +102,7 @@ directory structure expected by pywb
|
||||
|
||||
full_paths = []
|
||||
for filename in warcs:
|
||||
filename = os.path.abspath(filename)
|
||||
shutil.copy2(filename, self.archive_dir)
|
||||
full_paths.append(os.path.join(self.archive_dir, filename))
|
||||
logging.info('Copied ' + filename + ' to ' + self.archive_dir)
|
||||
|
Loading…
x
Reference in New Issue
Block a user