omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Moving files from documents to dropbox

    Editorial
    2
    3
    2053
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • orionrush
      orionrush last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • orionrush
        orionrush last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • peterh86
          peterh86 last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors