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
copy "archive" option (cp -a) #522
Comments
We already preserve permissions by default, and we have a Not particularly clear on how file ownership works in Node.js, maybe the rest of the team knows more? @jprichardson @manidlou |
it would be something to worry about when ran with sudo/root, to avoid the file being owned by root, to keep original owner. https://nodejs.org/api/fs.html#fs_fs_chown_path_uid_gid_callback |
Given that I haven't heard anything from the rest of the team, I'm gonna say PR welcome. @aikar You want to try this? |
Yeah as @RyanZim said, we already have According to |
So the question is do we want to set the file ownership by default like what we currently do for mode or we wanna make it optional like |
IMO, our default behavior should match I am a bit curious how frequently you'd be running as root though; which is the primary reason you'd want this feature. |
As per #912; |
It would be nice if an archive option for copy was provided to mimic -a on cp, to copy a file/directory exactly as it was in the source.
at least primarily, file owner and file permissions
The text was updated successfully, but these errors were encountered: