malxau/yori

rmdir succeeds without action when a non-directory file is passed

Closed this issue · 2 comments

Yori 1.40:

C:\Users\jostarks\tmp>touch foo
C:\Users\jostarks\tmp>rmdir foo || echo huh?
C:\Users\jostarks\tmp>dir foo

 Directory of C:\Users\jostarks\tmp

03/14/2021  03:26 PM                  0 foo
           1 File(s)                  0 bytes
           0 Dir(s)      22,596,653,056 bytes free

This was fixed after 1.40 in commit 5de18ad .

This should be fixed in 1.50, released today. Please let me know if there are further related issues.