Skip to content

FTP MKDIR

Nicolas Ramz edited this page Feb 15, 2019 · 1 revision

Some FTP servers seem to silently take liberties.

The MKDIR command may replace some unsupported characters and issue the same command with a different path instead.

For example, on some servers, issuing the following command:

MKDIR / foo

is supposed to create the / foo directory (notice the space) but will create the directory _foo instead.

If the FTP client doesn't reload the directory after issuing the command, this may result in weird errors (FileZilla doesn't do it for example) because if the user attempts to enter the newly created directory, it will attempt to run CWD / foo and will return an error since that's not the directory that was created.

React-FTP refreshes the directory to avoid this kind of problems.

Clone this wiki locally