FTP 215 System Type vs 226 Closing Data Connection
Both FTP 215 (System Type) and 226 (Closing Data Connection) belong to the 2xx Positive Completion category. 215 indicates that the NAME system type, where NAME is an official system name from the list in the Assigned Numbers document. Reports the operating system of the server. Meanwhile, 226 means that closing data connection. The requested file action was successful and the data connection is being closed.
説明
The NAME system type, where NAME is an official system name from the list in the Assigned Numbers document. Reports the operating system of the server.
このコードが表示される場合
After issuing the SYST command. The server reports its operating system type, commonly 'UNIX Type: L8' or 'Windows_NT'.
解決方法
No fix needed — use this information to adjust path separators and line endings for the server's OS type.
説明
Closing data connection. The requested file action was successful and the data connection is being closed.
このコードが表示される場合
After a file transfer, directory listing, or other data operation completes successfully.
解決方法
No fix needed — the transfer completed successfully. The data connection is closed and a new one will be opened for the next transfer.
主な違い
FTP 215: The NAME system type, where NAME is an official system name from the list in the Assigned Numbers document. Reports the operating system of the server.
FTP 226: Closing data connection. The requested file action was successful and the data connection is being closed.
You encounter 215 when after issuing the SYST command. The server reports its operating system type, commonly 'UNIX Type: L8' or 'Windows_NT'.
You encounter 226 when after a file transfer, directory listing, or other data operation completes successfully.
どちらをいつ使うか
For 215 (System Type): No fix needed — use this information to adjust path separators and line endings for the server's OS type. For 226 (Closing Data Connection): No fix needed — the transfer completed successfully. The data connection is closed and a new one will be opened for the next transfer.