MarquisLP / World-Scribe

An Android app for fictional world-building
MIT License
41 stars 7 forks source link

Files with a . prefix aren't being uploaded to Dropbox #1

Closed MarquisLP closed 7 years ago

MarquisLP commented 7 years ago

Some World files have a "." prepended to them. For example, Article images are named ".imagename.jpg" in order to hide them from the stock Gallery app.

At present, these files aren't being uploaded to Dropbox, which can cause problems when trying to add a World from Dropbox to the app.

MarquisLP commented 7 years ago

I've confirmed that this is a problem with the Dropbox API specifically, and not anything to do with the Java code. When I printed the contents of listFiles() to the log, ".Image.jpg" appeared, so dot files are definitely included in the list at upload time.

MarquisLP commented 7 years ago

For now, a workaround would be to make a copy of each ".Image.jpg" file, named "Image.jpg", and upload those to Dropbox instead.

Afterwards, if the user copies the World from Dropbox to the app folder, then there is already code in place to automatically rename "Image.jpg" files to ".Image.jpg" files.

This isn't entirely ideal, as the renaming process causes a bit of lag when opening an Article. If possible, we can try finding a better solution in the future that would allow the Dropbox API to recognize dot files properly.