-
Notifications
You must be signed in to change notification settings - Fork 744
rm -rf incorrect behaviour #332
Copy link
Copy link
Closed
Labels
Milestone
Description
rm('-rf', target) should never throw an exception when the target doesn't exist. It does, however, when it is inside a non-existent directory:
Expected:
mkdir('./tmp');
rm('-rf', './tmp');
rm('-rf', './tmp'); // no error
rm('-rf', './tmp/*'); // no error
rm('-rf', './tmp/non/existent'); // no errorActual:
mkdir('./tmp');
rm('-rf', './tmp');
rm('-rf', './tmp'); // ok
rm('-rf', './tmp/*'); // rm: no such file or directory: ./tmp
rm('-rf', './tmp/non/existent'); // sameReactions are currently unavailable