Hi,
I really like the new feature of syncing with dropbox and/or ftp. Right now I'm using dropbox..
But I have one problem. My folder hierarchy looks like this:
MDS/
application
/data/datafiles
/lookup_files/lookup_file1.csv, ... lookup_file2.csv
I manage to "get" the .pen and .pff file, then CreateClientPath/CreateServerPath data and to "put" my data files, but then I want to go up one level and down into the folder lookup_files, to "get" my files there, but I don't manage to go back up.
The obvious way to do it to me is (after dealing with the data folder)
ServerPath=..
ClientPath=..
CreateClientPath=/lookup_files
ClientPath=/lookup_files
But it seems my lookup_files folder ends up under the Data folder. And I haven't found an example on how to do this (I also tried just to set the paths like this (again after dealing with the data folder):
ServerPath=MDS
ClientPath=MDS
..and various versions with and without slashes
Any suggestions on how to do it?
Anne
Sync file: Moving up one folder
-
josh
- Posts: 2403
- Joined: May 5th, 2014, 12:49 pm
- Location: Washington DC
Re: Sync file: Moving up one folder
If you start the path in a ServerPath or ClientPath command with a "/" then it resets but if you don't start it with a "/" then it adds to the previous path. So in your case if you do the following after you get the data files it should work:
CreateServerPath=/MDS/lookupfiles
ServerPath=/MDS/lookupfiles
Actually I'm surprised .. doesn't work.
Josh
CreateServerPath=/MDS/lookupfiles
ServerPath=/MDS/lookupfiles
Actually I'm surprised .. doesn't work.
Josh
-
josh
- Posts: 2403
- Joined: May 5th, 2014, 12:49 pm
- Location: Washington DC
Re: Sync file: Moving up one folder
I just tested using .. to go up a level and it is working for me. Here is my .pnc file:
[Sync]
CreateServerPath=/test/foo
ServerPath=/test/foo
ServerPath=..
CreateClientPath=/test/foo
ClientPath=/test/foo
ClientPath=..
Get=bar.txt
In my Dropbox I have the file bar.txt in the folder Dropbox/test/. When I run it that file gets copied to csentry/test on my phone.
I'm running the latest beta and we have made some fixes to sync so if you are using an older version that might be the issue.
[Sync]
CreateServerPath=/test/foo
ServerPath=/test/foo
ServerPath=..
CreateClientPath=/test/foo
ClientPath=/test/foo
ClientPath=..
Get=bar.txt
In my Dropbox I have the file bar.txt in the folder Dropbox/test/. When I run it that file gets copied to csentry/test on my phone.
I'm running the latest beta and we have made some fixes to sync so if you are using an older version that might be the issue.