Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Sapper export: when copying static files, also set a(ccess)time and m(odification)time for the files #1110

Closed
ribizli opened this issue Mar 8, 2020 · 1 comment · Fixed by #1111

Comments

@ribizli
Copy link
Contributor

ribizli commented Mar 8, 2020

Is your feature request related to a problem? Please describe.
During export static files are copied using Node.js fs module (into __sapper__ folder). To optimize sync to a deployment copying atime and mtime should be done.

Describe the solution you'd like
Use fs.utimesSync to preserve static file's access and modification times. Extending the copy function in utils is good to go.

Describe alternatives you've considered
None

How important is this feature to you?
Quite important, my FTP sync tool supports using only mtime (no hashing, etc).

Additional context
None

@Conduitry
Copy link
Member

Implemented in 0.27.13.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants