davglass / cpr

Nodejs cp -R
Other
79 stars 80 forks source link

cp -a #34

Open stevenvachon opened 7 years ago

stevenvachon commented 7 years ago

preserve links and attributes

Not particularly useful to me, at least right now, but it might be a good goal to reach.

davglass commented 7 years ago

I think I'd rather support -p and work on links after that. Adding this into the stack shouldn't be too hard at all.

-p    Cause cp to preserve the following attributes of each source file in the copy:
modification time, access time, file flags, file mode, user ID, and group ID,
as allowed by permissions.
stevenvachon commented 5 years ago

cpy and its underlying cp-file both do this.