Skip to content

Implement cp -l flag to create hardlinks in a file heirarchy #14306

Open
@Jasha10

Description

@Jasha10

Related problem

I'd like to create a recursive copy of a directory using hardlinks.
The traditional unix cp command implements this. From man cp:

   -l    Create hard links to regular files in a hierarchy instead of copying.

This can be combined with the -R flag to recursively copy contents of a directory as hardlinks:

cp -lR source dest

Describe the solution you'd like

nushell's cp to implement such hardlink copying capabilities, or nushell to expose some alternative to cp -lR.

Describe alternatives you've considered

Use external function ^cp.

Additional context and details

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfile-systemRelated to commands and core nushell behavior around the file systemneeds-triageAn issue that hasn't had any proper look

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions