Directory separator problem
|Reported by:||Greg Hoff||Owned by:|
|Component version:||Operating system type:||Linux|
|Operating system version:|
I am using an embedded FTP server from Green Hills. It follows in the Linux tradition using a slash, '/', to separate directory levels. When I connect with FileZilla it attempts to set the working directory using backslashes, '\', which results in an error. The display shows folders with question marks. (Presumably as a consequence.) FZ then does a PWD and appears to then recognize that slashes are to be used. Subsequent commands use slashes and there are no more problems. Would it make sense to issue a PWD as soon as the connection is opened and use the response to direct how to format all future directory-related commands? See the sequence below:
11:03:49 Status: Connecting to 184.108.40.206:21...
11:03:49 Status: Connection established, waiting for welcome message...
11:03:49 Response: 220 Service ready.
11:03:49 Command: USER ecc1
11:03:49 Response: 331 User name ok, need password.
11:03:49 Command: PASS
11:03:49 Response: 230 User logged in.
11:03:49 Command: SYST
11:03:49 Response: 215 UNIX Type: L8
11:03:49 Command: FEAT
11:03:49 Response: 500 Unknown cmd FEAT
11:03:49 Status: Connected
11:03:49 Status: Retrieving directory listing...
11:03:49 Command: CWD \mnt\sdmem_0_a\ecc1
11:03:49 Response: 550 Bad path.
11:03:49 Command: PWD
11:03:49 Response: 257 "/"
11:03:49 Command: TYPE I
11:03:49 Response: 200 Command OK.
11:03:49 Command: PASV
11:03:49 Response: 227 Entering Passive Mode (199,184,177,89,159,53)
11:03:49 Command: LIST
11:03:49 Response: 150 Here it comes...
11:03:49 Response: 226 Transfer OK, Closing connection
11:03:49 Status: Directory listing successful