Forum Archive

Moving files from documents to dropbox

orionrush

I'm feeling a bit silly here. I've been happily typing up a bunch of documentation in markdown using Editorial, but hadn't bothered to connect a dropbox account. Now that I've done so, I can't seem to move files from the Editorial Documents section to the dropbox section. How is this done?

Thanks for such a lovely app btw!

orionrush

So I've solved my own problem with a workflow, which is a nice set of tools. It must be said however, it was a pretty circuitous route to move a dozen files! So either something isn't working as expected (Dropbox isn't showing up as an option in the move action) or it's a feature that is much needed.

Also the workflow I created wasn't able to replicate the file structure, as there doesn't seem to be a "get name of parent directory" as an option. Is there a way to do this? Or perhaps this is a feature request?

peterh86

Moving files to and from Dropbox does seem to cause problems and there are already some workflows to do this. You could use your workflow to move your files into dropbox anywhere, then use editorial set up a folder structure in dropbox and to move your files into this structure.

Otherwise, you can find a parent directory in python like this:

p, n_e = os.path.split(full_path)
x,d = os.path.split(p)     # d is the parent directory

And there is a function os.walk that might help you replicate the file structure; I've not done this.