But it tells you the current directory right after CWD
example:
[R] CWD /
[R] 250 OK. Current directory is /
[R] PWD
[R] 257 "/" is your current location
[R] CWD access-logs
[R] 250 OK. Current directory is /access-logs
[R] PWD
[R] 257 "/access-logs" is your current location
[R] CWD /not-exist
[R] 550 Can't change directory to /not-exist: No such file or directory
Again, maybe it's not supposed to tell the current directory, and not every server returns it after CWD, but PWD can be disabled for servers that do
Edit:
Yep, seems like not all servers return the current directory after CWD
Lycos for example:
[R] CWD /html
[R] 250 CWD command successful
[R] PWD
[R] 257 "/html" is current directory.
So here I agree that PWD is necessary, but mostly it does not
|