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

Glob pattern support for delete and move #22

Open
biliktamas79 opened this issue Mar 10, 2018 · 8 comments
Open

Glob pattern support for delete and move #22

biliktamas79 opened this issue Mar 10, 2018 · 8 comments

Comments

@biliktamas79
Copy link

Feature request

It would be really great to have support for glob patterns not just for the copy, but for the move and delete commands as well.

Your Environment

Tech Version
filemanager-plugin-webpack 1.0.24
node 7.9.0
OS Windows 10 x64
@Saravanan90
Copy link

+1

@viktor-izettle
Copy link

I very much agree.

@viktor-izettle
Copy link

After some poking around in the source, it turns out delete uses rimraf which supports globs. Also since copy supports globs the workaround is to simply copy then delete.

@biliktamas79
Copy link
Author

Ok, then now a copy-then-delete can be a workaround for moving, but as it temporarily uses double space and thus it is only a workaround, we still miss the real solution. Why not to support glob pattern matching in move as in copy???

@jankanty
Copy link

jankanty commented Jun 6, 2018

I just added * to delete rule and it works fine ;)

@eric-norcross
Copy link

Is there a way to use a glob pattern in the destination path of a copy function? e.g.:

copy: [
  { source: 'src/_global/js/global.js', destination: 'src/slides/*/js' },
]

@Nantris
Copy link

Nantris commented May 31, 2022

* did work for us with delete on 7.0.0-beta.0 on Windows. ** did not.

@helm100
Copy link

helm100 commented Dec 8, 2022

With version 8.0.0, delete seems to work with pattern "target/folder/*.css" (deletes all css files) but not with pattern "target/folder/style*.css" (doesn't do anything). Any ideas?

Edit: seems to be a windows issue?

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

No branches or pull requests

8 participants