Cyberduck Mountain Duck CLI

#2267 closed defect (worksforme)

initial directory not honoured

Reported by: a.jonker@… Owned by: dkocher
Priority: normal Milestone: 3.0.2
Component: applescript Version: 3.0.1
Severity: major Keywords:
Cc: Architecture:
Platform:

Description (last modified by dkocher)

set theLocalFolder to POSIX path of ("Kingston:ontwerp:celbiologie:20082009:2.2:vasculairsysteem")
set initialFolder to "celbiologie"
set theBaseFolder to "celbiologie/20082009/2.2/"
set theUploadFolder to "vasculairsysteem"
set theSyncFolder to "20082009/2.2/vasculairsysteem"

with timeout of 300 seconds
	tell application "Cyberduck"
		activate
		set theBrowser to (make new browser)
		tell (theBrowser)
			set encoding to "UTF-8"
			connect to theServer with protocol theProtocol as user theUser with initial folder initialFolder
			change folder to theSyncFolder
			set theresult to (sync folder theSyncFolder with local folder theLocalFolder)
		end tell
	end tell
end timeout

results in

	CWD /20082009/2.2
	550 /20082009/2.2: The system cannot find the path
 specified.

The base folder is not honoured. It is not possible to remove the leading '/'; specifying /celbiologie as part of theSyncFolder path leads to

	 CWD /celbiologie/celbiologie/20082009/2.2/vasculairsysteem
	 550 /celbiologie/celbiologie/20082009/2.2/vasculairsysteem: The system cannot find the path specified. 

I am not allowed to connect to the ftp server without the leading /celbiologie argument. The sync example in the AppleScript folder of the dmg is no longer there.

Change History (4)

comment:1 Changed on Jul 7, 2008 at 6:16:52 PM by dkocher

  • Description modified (diff)

comment:2 Changed on Jul 7, 2008 at 6:17:04 PM by dkocher

  • Component changed from ftp to applescript
  • Description modified (diff)

comment:3 Changed on Jul 14, 2008 at 7:54:23 PM by dkocher

  • Resolution set to worksforme
  • Status changed from new to closed

I did some tests with different combinations of with initial dir and change folder to commands. Seems to work for me as expected. You say the base folder is not honoured, but I don't see the variable theBaseFolder referenced anywhere in your script.

comment:4 Changed on Jul 14, 2008 at 7:55:08 PM by dkocher

I did my tests with the latest nightly build, so you may want to give it a try as well. http://update.cyberduck.ch/nightly.

Note: See TracTickets for help on using tickets.
swiss made software