Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Uploading folders from the file browser?
-
I have an application that generates a 'Data' folder with experimental output. At some point I figure I should write an uploader to stash these files on Dropbox / OneDrive / GoogleDrive / Wolfram Data Drop (preferred...)
For the time being, my program creates this folder and I'd like to just be able to upload the whole thing using the 'Edit' menu in the file browser. Alas- this doesn't seem to work, regardless of the service.
To replicate-
Data folder containing various computed images.
Select folder in 'Edit' mode of file browser.
Select either Dropbpx, OneDrive or Google Drive in the 'Send To' menu.After confirming whatever dialog is presented, I receive an 'Uploading' progress dialog, but nothing is ever uploaded.
Regressing- I can select the files manually, within the Data folder, and the 'Send To' will properly ship them to their destination. However, since I've got hundreds or even thousands of files in this folder, it will really be a PITA to do it manually.
Thoughts? Is this a bug?
-
I'm not sure what's causing this to fail. I suspect that it could be a bug in the OneDrive app (haven't tried the others you've mentioned). Receiving a folder path as input in the share sheet is probably somewhat unusual.
Maybe you could just create a Zip archive of your folder programmatically? That should be pretty straightforward with the
zipfile
module. -
Yes- I was wondering about that. The share sheet can handle multiple items, but the directory thing seems potentially weird. I'll try zipping it all up.