1
0
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:
Ilya Kreymer 2015-03-26 19:18:55 -07:00
parent 6ce75f80f5
commit 753300d5ed

View File

@ -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)