ftzz icon indicating copy to clipboard operation
ftzz copied to clipboard

[feature request] allow generating broken and or valid symlinks, hardlinks

Open phanirithvij opened this issue 11 months ago • 3 comments

phanirithvij avatar Mar 27 '25 14:03 phanirithvij

Seems pretty reasonable, but out of curiosity what is this for?

SUPERCILEX avatar Mar 27 '25 18:03 SUPERCILEX

I was using nix (nixos package manager) and generating a tar like archive format but custom to nix called nar. And for that I am trying to add symlink support, the tool takes arbitrary directory as input and creates a nar archive. To test it in a deterministic way I wanted a way to generate arbitrary directory hierarchy.

So I found your project and I thought I'd ask for adding symlink support.

Tool is called nardump, lives in tailscale repo.

phanirithvij avatar Mar 27 '25 18:03 phanirithvij

Got it, that makes sense! I'm not going to be able to work on this anytime soon, but I'd be happy to accept some design ideas for the configuration flags and then a PR to implement them.

SUPERCILEX avatar Mar 27 '25 23:03 SUPERCILEX

I could have a look into this if you like, similar to having functionality for permission distribution, and uid/gid and % of file duplicates based on hash. this functionality would serve me for a file utility im building

jcuypers avatar Jan 26 '26 20:01 jcuypers