adamreisnz / replace-in-file

A simple utility to quickly replace contents in one or more files
580 stars 65 forks source link

Does not follow symlinks (anymore)? #155

Closed nextgenthemes closed 1 year ago

nextgenthemes commented 2 years ago

I am not sure if it worked in the past, I think it did. If it has anything to do with node version or this package, but it does not work when I point it to a relative path in a symlinked directly.

I also switched from SUSE to Ubuntu and from ext4 to ZFS, but I do not think that is the cause.

It works (again) if I use an absolute path.

adamreisnz commented 1 year ago

This package uses the Node native fs.readFileSync and fs.readFile, so if any symlinks are not working that is likely an environmental issue, not related to this package specifically.