Xceed FTP Library Documentation
ChangeToParentFolder method
XceedFtp control reference > Methods > ChangeToParentFolder method

Description

Changes the FTP server's current working folder to its parent folder. Using this method is preferable to using the ChangeCurrentFolder method with the sFolder parameter set to ".." because the ".." path item may not be supported by all FTP servers.

This method can only be used when the CurrentState property's value is fcsConnected.

Parameters

None

Remarks

Methods that send the PWD command do not report errors in the case where the PWD command fails.

Declaration  
HRESULT ChangeToParentFolder()

Applicable properties

CurrentFolder, AutoRefreshCurrentFolder

Events triggered

LoggingCommandLine, ProcessCompleted