You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File.exists? and File.chmod are two methods that always dereference symlinks; when File.readlink was implemented on Windows, those two methods call Crystal::System::File.realpath internally to match the default behavior of the equivalent POSIX implementations. They should support the follow_symlinks parameter, which requires additional work for Unix-like systems:
I believe File.exists? requires using lstat instead of access
For File.chmod, fchmodat(AT_FDCWD, path, mode, AT_SYMLINK_NOFOLLOW) ignores symlinks
The text was updated successfully, but these errors were encountered:
File.exists?
andFile.chmod
are two methods that always dereference symlinks; whenFile.readlink
was implemented on Windows, those two methods callCrystal::System::File.realpath
internally to match the default behavior of the equivalent POSIX implementations. They should support thefollow_symlinks
parameter, which requires additional work for Unix-like systems:File.exists?
requires usinglstat
instead ofaccess
File.chmod
,fchmodat(AT_FDCWD, path, mode, AT_SYMLINK_NOFOLLOW)
ignores symlinksThe text was updated successfully, but these errors were encountered: