mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Preserve file metadata (esp. timestamps) when copy static files to output folder.
This commit is contained in:
parent
754611180b
commit
eb6d4bb008
2 changed files with 3 additions and 3 deletions
|
|
@ -573,7 +573,7 @@ class StaticGenerator(Generator):
|
|||
source_path = os.path.join(self.path, sc.source_path)
|
||||
save_as = os.path.join(self.output_path, sc.save_as)
|
||||
mkdir_p(os.path.dirname(save_as))
|
||||
shutil.copy(source_path, save_as)
|
||||
shutil.copy2(source_path, save_as)
|
||||
logger.info('copying {} to {}'.format(sc.source_path, sc.save_as))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue