effect icon indicating copy to clipboard operation
effect copied to clipboard

Option to disable following symlinks in fs.stat

Open effect-bot opened this issue 1 year ago • 0 comments

Summary

The user is using Effect Platform and has a question about the fs.stat function. They noticed that the function always follows symbolic links, which causes the isSymbolicLink function to always return false. They suggest using lstat instead to get information about the link. They also mention that if they want to follow the link, they can call realPath before. Tim acknowledges this and suggests that it could be an option to disable following symlinks.

Key takeaways:

  • The user is questioning the use of fs.stat and isSymbolicLink in Effect Platform.
  • They suggest using lstat to get information about symbolic links.
  • Tim suggests that disabling following symlinks could be an option.

Discord thread

https://discord.com/channels/795981131316985866/1195408737301692500

effect-bot avatar Jan 13 '24 06:01 effect-bot