ebidel / filer.js

A wrapper library for the HTML5 Filesystem API what reuses UNIX commands (cp, mv, ls) for its API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mkDir issues

paulcanning opened this issue · comments

I am have some issues with mkDir.

I have an array that lists some files to download (using the filer-download.js addon) and I am looping through each array item using jQuery $.each().

I get the following errors in the console:

filer.js:567 FileError is deprecated. Please use the 'name' or 'message' attributes of DOMError rather than 'code'.
filer.js:568 Uncaught TypeError: Cannot set property message of # which has only a getter(anonymous function) @ filer.js:568

I need the following directory structure:

  • main_dir
    --sub_dir
    --sub_dir

etc

I have tried using mkDir to create the main_dir, then in the loop, tried to create the sub_dirs, but I just get multiple of the error show above.

I have initialized Filer with 1000mb and persistent storage.