When doing FTP commands to traverse the remote file system, there are a few different ways cURL can proceed to reach the target file, the file the user wants to transfer.
cURL can do one change directory (CWD) command for every individual directory down the file tree hierarchy. If the full path is
one/two/three/file.txt, that method means doing three
CWD commands before asking for the
file.txt file to get transferred. This method thus creates quite a large number of commands if the path is many levels deep. This method is mandated by an early spec (RFC 1738) and is how curl acts by default: Continue reading