moo-man / FVTT-DD-Import

Allows Importing Dungeondraft map files into FoundryVTT
MIT License
60 stars 28 forks source link

create directory if it doesn't exist #51

Open scooper4711 opened 3 years ago

scooper4711 commented 3 years ago

the dialog for importing doesn't use a file picker, so you can only specify a directory which already exists. If you specify a directory that doesn't exist, it should be created. Alternately, use a file picker which has a "new directory" capability.

cube1us commented 3 years ago

Did you perhaps mean exporting here? I don't follow why an import operation would want to allow creating a new directory. [I am not the dev. here, but just reading through the comments.]

scooper4711 commented 3 years ago

I host on AWS. If I'm making a new set of scenes, I want to be able to organize it how I want without having to ssh to the server to do a mkdir command.

widget commented 3 years ago

Perhaps to be clear, if this is used to import a map to a directory that doesn't exist, the scene appears in FVTT with only a momentary popup saying "couldn't create directory" which I didn't see because I'd left the import to run. This is entirely user error on my part!

But it would be nice to either perform a check for the destination directory to exist before starting the import, or create the directory if it doesn't exist.