denoland / std

The Deno Standard Library
https://jsr.io/@std
MIT License
3k stars 598 forks source link

Hard linking for `fs/copy` #5762

Open kinddstranger opened 3 weeks ago

kinddstranger commented 3 weeks ago

Is your feature request related to a problem? Please describe.

My business solution requires copies of really big directories to be made. This turns out to be a pretty big waste of disk space when a filesystem feature like hard links isn't being used.

Describe the solution you'd like

Add a hardlink: boolean; field to the options.

Describe alternatives you've considered

Currently I just copied the module and added this feature myself.

iuioiua commented 3 weeks ago

Can you please share a fork containing the code you came up with?