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
Expected behavior
No error should be thrown. Instead the specified directory should get deleted.
Additional context
In @ts-morph/commonunlink is called no matter if the target is a directory or a file. In case of directories rmdirshould be called instead.
The text was updated successfully, but these errors were encountered:
Describe the bug
When calling
.delete()
on a Directory object,EISDIR: illegal operation on a directory, unlink '/your/directory/delete-me'
is thrown.Version: 13.0.3
To Reproduce
Expected behavior
No error should be thrown. Instead the specified directory should get deleted.
Additional context
In @ts-morph/common
unlink
is called no matter if the target is a directory or a file. In case of directoriesrmdir
should be called instead.The text was updated successfully, but these errors were encountered: