Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial directory not honoured #2267

Closed
cyberduck opened this issue Jul 1, 2008 · 2 comments
Closed

initial directory not honoured #2267

cyberduck opened this issue Jul 1, 2008 · 2 comments

Comments

@cyberduck
Copy link
Collaborator

@cyberduck cyberduck commented Jul 1, 2008

ea373e0 created the issue

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.

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Jul 14, 2008

@dkocher commented

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.

@cyberduck cyberduck closed this Jul 14, 2008
@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Jul 14, 2008

@dkocher commented

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).

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants