Closed djberg96 closed 2 years ago
Looks like there are some unrelated CI issues.
Hey @djberg96 thanks for this PR. I'll merge it as-is and will take care of rubocop 😉 If anyone needs a more accurate/advanced nlink
implementation it'll be a matter for later.
Thanks!
This adds a basic nlink method that's hard coded to 1 for files and 2 for directories, i.e. the defaults for simple cases.
Original issue at https://github.com/simonc/memfs/issues/35
I was going to try to do something more realistic, but wasn't satisified with my ultimately incomplete solution. There's probably a good way to accomplish it using internal methods, but it escaped me.