webextensions/copy-files-from-to

Copy folder recursively

Closed this issue · 2 comments

I'm trying to copy all the content of a folder (other folders and files) to another location with the following copy-files-from-to.json.

{
  "copyFiles": [
    {
      "from": "assets/*",
      "to": "www/assets/*"
    }
  ]
}

Can we do that ? Thanks

This issue has been fixed in the latest version (copy-files-from-to@1.1.0).

Please note that the to field should be the directory path (it shouldn't contain the "glob" pattern). So, the syntax would go like:

{
  "copyFiles": [
    {
      "from": "assets/*",
      "to": "www/assets/"
    }
  ]
}

Please note that I have not tested the latest change on Windows. Hopefully, it should work fine :-)

In case you notice a bug, kindly add a comment and reopen.