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

It still delete the file without extension although have ! at begin #123

Open
thinhbgnex opened this issue Apr 18, 2020 · 1 comment
Open

Comments

@thinhbgnex
Copy link

thinhbgnex commented Apr 18, 2020

Example files tree

files
  subDir
    folder1
      child1.txt
    folder2
    file1 //this is a file without extension
    file2.txt

command

del(['./files/subDir/**', '!./files/subDir/file1']

Result: all files in folder files were deleted.

Expected after deletion:

files
  subDir
    file1
@vladshcherbin
Copy link
Contributor

@thinhbgnex try using ./files/subDir/* instead.

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