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
On both Windows and Posix platforms, the invocation of the underlying rename function is identical, so the value of explicitly choosing either the directory or file API is diminished. In my specific use case, I wanted to implement renameSync but had to swipe the System.Directory's implementation instead of being able to rely on the System.Directory module.
In addition, checking for a file or directory in advance opens a potential race condition and blocks usage of rename against non-file, non-directory nodes such as devices.
For my use case, a rename function which ignores the directory/file distinction would have solved the problem.
The text was updated successfully, but these errors were encountered:
On both Windows and Posix platforms, the invocation of the underlying rename function is identical, so the value of explicitly choosing either the directory or file API is diminished. In my specific use case, I wanted to implement renameSync but had to swipe the System.Directory's implementation instead of being able to rely on the System.Directory module.
In addition, checking for a file or directory in advance opens a potential race condition and blocks usage of rename against non-file, non-directory nodes such as devices.
For my use case, a rename function which ignores the directory/file distinction would have solved the problem.
The text was updated successfully, but these errors were encountered: