Page 1 of 1

Problem with Dropbox Folder Creation

Posted: 13 Sep 2013 05:45
by bindalji66
hello,
i have made a backup flow which checks a folder for changes(with help of file observer) in it and if some new file comes in it uploads it on dropbox.

The problem is with creating new folders on dropbox.

Steps:-
1.File watcher watches folder in trigger .
2.Get the folder name in trigger create it on dropbox if its not there or else add the images to it if it already exists .
3.The action upload files in dropbox will upload new file in folder watched.

Please help me how to create folders on dropbox(using string functions only).

eg path in file observer trigger: /storage/extSdCard/DCIM/Camera/Family

Action:
Dropbox Upload files
source files:{tempval} \\tempval is name of file eg: ashish.jpg
path on dropbox:/Backup/{elem} \\elem is directory where file was stored and is to be stored on dropbox eg: Family

i want script to create directory on Dropbox if it does not exists.

Thanks in advance :)

Re: Problem with Dropbox Folder Creation

Posted: 13 Sep 2013 06:01
by standalonescript
I just tested uploading a directory structure and it worked (created /test/carbon/subdir/file.ext along with everything else inside carbon directory)

I used upload files and used the following:

Source files:
/storage/emulated/0/carbon

Path on drop box:
/test

HTH,
Josh

Re: Problem with Dropbox Folder Creation

Posted: 13 Sep 2013 06:04
by standalonescript
Sorry, that was useless. Too tired. I'll see if I can figure it out tomorrow.

Josh

Re: Problem with Dropbox Folder Creation

Posted: 13 Sep 2013 06:09
by standalonescript
Can you upload the directory that contains the update file (or perhaps two levels up)? That way the upload files can create it for you?

You will have to ascend for both the source and target equally.

Josh.