Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download preserving original creation, modification and access dates #1496

Closed
jomiquel opened this issue Jul 23, 2020 · 3 comments
Closed

Download preserving original creation, modification and access dates #1496

jomiquel opened this issue Jul 23, 2020 · 3 comments

Comments

@jomiquel
Copy link

When using the sftp client with the -p parameter, when downloading files they retain the original creation, modification and access dates. Is there a way to achieve the same with that library? I can not find it.

@terrafrost
Copy link
Member

There is not currently a way to do this. But what if I add two methods, like so?:

  • $sftp->enableDatePreservation()
  • $sftp->disableDatePreservation()

@jomiquel
Copy link
Author

This sounds so nice. Thanks.

@terrafrost
Copy link
Member

ea653e1 should do the trick!

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

No branches or pull requests

2 participants