FTP

FTP 212 Directory Status vs 553 File Name Not Allowed

FTP 212 (Directory Status) is a 2xx Positive Completion response, while 553 (File Name Not Allowed) is a 5xx Permanent Negative response. 212 indicates that directory status reply. The server provides information about the current directory or a specified directory. In contrast, 553 means that requested action not taken. File name not allowed. The file or directory name violates the server's naming rules or filesystem restrictions.

Описание

Directory status reply. The server provides information about the current directory or a specified directory.

Когда вы это видите

After issuing the STAT command on a directory, the server returns the directory listing or status information.

Как исправить

No fix needed — this is an informational response showing directory contents or status.

Описание

Requested action not taken. File name not allowed. The file or directory name violates the server's naming rules or filesystem restrictions.

Когда вы это видите

When you try to create or rename a file with characters the server's filesystem does not allow, such as special characters or reserved names.

Как исправить

Rename the file to use only allowed characters. Avoid special characters like ?, *, |, <, >, and leading/trailing spaces or dots.

Ключевые различия

1.

212 is a 2xx Positive Completion response, while 553 is a 5xx Permanent Negative response.

2.

FTP 212: Directory status reply. The server provides information about the current directory or a specified directory.

3.

FTP 553: Requested action not taken. File name not allowed. The file or directory name violates the server's naming rules or filesystem restrictions.

4.

You encounter 212 when after issuing the STAT command on a directory, the server returns the directory listing or status information.

5.

You encounter 553 when when you try to create or rename a file with characters the server's filesystem does not allow, such as special characters or reserved names.

Когда что использовать

For 212 (Directory Status): No fix needed — this is an informational response showing directory contents or status. For 553 (File Name Not Allowed): Rename the file to use only allowed characters. Avoid special characters like ?, *, |, <, >, and leading/trailing spaces or dots.

Узнать больше