Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

y2kdis

Posts

5

Joined

Fri Jan 22, 2010 12:04 am

ServerDirectory vs. ChangWorkingDirectory

by y2kdis » Fri Feb 12, 2010 3:37 am

It seems both method can take you to a target location.
That is, FtpConnection.ServerDirectory = "/DirA/MyLocation" does the same thing as FtpConnection.ChangeWorkingDirectory("/DirA/MyLocation")
I wonder if there's any difference between the two in terms of getting to your desired location in the remote server.
Our codeset makes use of the former in many sections and I am now concerned if I should be updating them to the latter.
no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Fri Feb 12, 2010 8:25 am

The main use of ChangeWorkingDirectory is with relative directory-changes. For example FtpConnection.ChangeWorkingDirectory("MySubDir").

- Hans (EnterpriseDT)

Who is online

Users browsing this forum: No registered users and 22 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron