<< Back


FVSDK_UpOneDirectory

Synopsis

FVSDK_ERROR_CODE FVSDK_UpOneDirectory(FVSDK_Session* pSession);

Description

Changes the current directory up one directory from the current working directory. This function issues the CDUP (change directory up) FTP command to go one level up in the directory tree. On UNIX systems, this command is the same as issuing "cd .." from a shell, or "CWD .." in FTP.

Parameters

pSession

A pointer to the FVSDK_Session that is to perform the operation.

Return Value

FVSDK_YES if changing the directory was successful, FVSDK_NO if the directory could not be changed. Error codes can be found in FVSDK_ErrorCodes.h.

Example

// go up one level in the directory tree
if (FVSDK_UpOneDirectory(pSession) != FVSDK_YES)
    AfxMessageBox("Unable to go up one directory.");