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

preserve timestamps on move files #493

Closed
lbell opened this issue Sep 23, 2017 · 2 comments
Closed

preserve timestamps on move files #493

lbell opened this issue Sep 23, 2017 · 2 comments

Comments

@lbell
Copy link

lbell commented Sep 23, 2017

Any chance to add a preserveTimestamps option on move? Or should I just use something like:

fs.copy(src, dest)
.then(() => {
  fs.remove(src)
  .then(() => {
    console.log('Copied & Removed!')
  }).catch(err => {
    console.error(err)
  })
}).catch(err => {
  console.error(err)
})

Edit: I just found something in the works: #342

@RyanZim
Copy link
Collaborator

RyanZim commented Oct 18, 2017

Sorry for the slow response here. PR welcome; not sure if it'd be easier to cleanup the existing PR or reimplement it from scratch.

@RyanZim
Copy link
Collaborator

RyanZim commented Oct 20, 2022

Given that no one has stepped up to implement this since 2017, I'm gonna close this one out. If somebody wants this badly and is willing to do the work to implement it, please comment below.

@RyanZim RyanZim closed this as completed Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants