filemanager-webpack-plugin icon indicating copy to clipboard operation
filemanager-webpack-plugin copied to clipboard

Glob pattern support for delete and move

Open biliktamas79 opened this issue 6 years ago • 8 comments

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

biliktamas79 avatar Mar 10 '18 15:03 biliktamas79

+1

Saravanan90 avatar Apr 11 '18 16:04 Saravanan90

I very much agree.

viktor-izettle avatar May 22 '18 10:05 viktor-izettle

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.

viktor-izettle avatar May 22 '18 14:05 viktor-izettle

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???

biliktamas79 avatar May 22 '18 18:05 biliktamas79

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

jankanty avatar Jun 06 '18 11:06 jankanty

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' },
]

eric-norcross avatar Jun 25 '19 18:06 eric-norcross

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

Nantris avatar May 31 '22 23:05 Nantris

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?

helm100 avatar Dec 08 '22 13:12 helm100