2

I want to create an extension which copys from a folder from a path to another path using javascript in a google chrome extension (else I can't access the user system I think)

I've already found this out that I have to add "file://*" in the manifest in order to access those files and of course there is the File API in HTML5.

But how can I copy the files? From html5rocks I know how to read them, but I couldn't find out how to copy them.

kurtextrem
  • 35
  • 3

1 Answers1

1

Unfortunately, you cannot access an arbitrary location on the user's filesystem (for writing).

Both, the related HTML5 APIs and the chrome.fileSystem API do not allow to modify or save files to arbitrary location on the user's filesystem. Your app/extension will be allowed to operate within a confined, sandboxed environment (virtual filesystem).

There are a few related answers here, in StackOverflow, e.g.:
here, here and here

More info on the APIs:

Community
  • 1
  • 1
gkalpak
  • 47,844
  • 8
  • 105
  • 118