Phonegap – Create nested directories

By default PhoneGap File API creates only one directory at a time and the developer has to write the additional code in case nested directory structure is required. Below is an example of a small utility method which creates the nested directory structure based on the given path.

  • cubitus

    hey, very nice piece of code ;-) but … have you tried it to create huge amount of folders? I am trying to create eg. 1000 of folders with 6 levels each and it seems it stops on certain amount of folders – can’t figure out on how many … do you know any limits here?