- // This function checks if the file specified in fileName exists in the
- // current dir. It does so by simply doing an NLST (via GetList).
- // If this succeeds (and the list is not empty) the file exists.
-
- bool retval = FALSE;
- wxArrayString fileList;
-
- if ( GetList(fileList, fileName, FALSE) )
- {
- // Some ftp-servers (Ipswitch WS_FTP Server 1.0.5 does this)
- // displays this behaviour when queried on a non-existing file:
- // NLST this_file_does_not_exist
- // 150 Opening ASCII data connection for directory listing
- // (no data transferred)
- // 226 Transfer complete
+ // This function checks if the file specified in fileName exists in the
+ // current dir. It does so by simply doing an NLST (via GetList).
+ // If this succeeds (and the list is not empty) the file exists.
+
+ bool retval = FALSE;
+ wxArrayString fileList;
+
+ if ( GetList(fileList, fileName, FALSE) )
+ {
+ // Some ftp-servers (Ipswitch WS_FTP Server 1.0.5 does this)
+ // displays this behaviour when queried on a non-existing file:
+ // NLST this_file_does_not_exist
+ // 150 Opening ASCII data connection for directory listing
+ // (no data transferred)
+ // 226 Transfer complete