Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting directories on Windows does not work for paths with trailing slash #13

Open
thasmo opened this issue Sep 9, 2019 · 1 comment

Comments

@thasmo
Copy link

thasmo commented Sep 9, 2019

After upgrading to del-cli@3 the following behavior occurs:


Command: del-cli dir/subdir/ (Note the trailing slash)
Expectation: dir/subdir/ gets deleted.
Outcome: dir/subdir/ is not deleted.

Command: del-cli dir/subdir (Note the absence of the trailing slash)
Expectation: dir/subdir/ gets deleted.
Outcome: dir/subdir/ gets deleted.


This behavior appears to have started with the switch to del@5 using fast-glob but after looking into the fast-glob docs I'm not sure there is even option or anything related to control this behavior. (Using del-cli@2 does behave the same for both commands.)

tbh I thought I report it here first because I encountered it using del-cli. If you believe this is a problem with fast-glob feel free to close the issue and I will create another issue for fast-glob.

Thanks a lot! 👍

@anilbhatt
Copy link

Same with us, unable to run commands on windows. Breaking application with
ExperimentalWarning: The ESM module loader is experimental.
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants