moo-man / FVTT-DD-Import

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

combining multiple files into 1 scene can create too large paths on Windows #101

Open Majea opened 3 years ago

Majea commented 3 years ago

If you create a combination of multiple dd2vtt files into a single scene, the module creates a file that concatenates the file names of the different source files. On windows, this can lead to a full path that exceeds the maximum path length. When that happens:

Suggestion: use a random UUID as temp file name or use the final file name from the begining, since you're renaming it in the end after all.

Workaround for users: if you realise you'll be joining multiple long file names, think about renaming the dd2vtt file names beforehand so that the concatenated file path no longer exceed the windows max path length.

m42e commented 3 years ago

Sounds pretty reasonable. I'll have a look at.