How do you move up a level in the ftp direcotry using FtpSetCurrentDirectory
Posted on 2005-02-26
I can get to the directory i want by moving down but how do i move up in the directory. For example i can move through a directory structure like this:
I am using a function that looks like this:
Public Sub rcd(pszDir As String)
Dim sPathFromRoot As String
Dim bRet As Boolean
sPathFromRoot = pszDir
If sPathFromRoot = "" Then sPathFromRoot = "/"
bRet = FtpSetCurrentDirectory(hConnection, sPathFromRoot)
Using this i can easily start at automobile and get to any of the lower vehicles by calling the routine 'rcd' and passing the desired lower directory. However, if i am in the 'blazer' directory i cant figure out how to move back so i can get to the
Am i using the wrong call? I'm in a bind and could really use the help. Thanks in advance.