"Chris Crowe [ IIS MVP 1997 -> 2006 ]" <iismvp2005@iisfaq.homeip.net> wrote
in message news:%23v2NmjmMGHA.740@TK2MSFTNGP12.phx.gbl...
>I would assume that the FTP server would give an error indicating that the
>home directory is not accessable.
>
> Something like this:
> [08:48:16] SmartFTP v2.0.993.20
> [08:48:16] Resolving host name "ftp.crowe.co.nz"
> [08:48:16] Connecting to 203.129.73.229 Port: 21
> [08:48:16] Connected to ftp.server.co.nz.
> [08:48:18] 220 Microsoft FTP Service
> [08:48:18] USER chriscrowe
> [08:48:18] 331 Password required for chriscrowe.
> [08:48:18] PASS (hidden)
> [08:48:18] 530 User ccrowe cannot log in, home directory inaccessible.
> [08:48:18] Active Help:
http://www.smartftp.com/support/kb/index.php/51
> [08:48:18] Cannot login waiting to retry (30s)...
>
>
> --
>
>
> Cheers
>
> Chris Crowe [IIS MVP 1997 -> 2006]
>
http://blog.crowe.co.nz > ------------------------------------------------
>
> "Ragnar Midtskogen" <ragnar_ng@newsgroups.com> wrote in message
> news:uujsIFcMGHA.208@tk2msftngp13.phx.gbl...
>> Hello,
>>
>> I am writing an app to transfer files by FTP and I have a question about
>> error handling.
>> The FTP Server account has been set up to use a USB disk drive as the
>> default directory.
>> Occasionally the USB port stops, so I need to check if the default
>> directory is valid by looking at the FTP Server error code when
>> connecting.
>> I have looked at lists of FTP Server error codes, but I have not found
>> any that has to do with the default directory.
>> The drive is used by a live Web application, so I can't easily stop the
>> USB port and see what code is returned.
>>
>> If anyone has this info I would appreciate the code to look for.
>>
>> Ragnar
>>
>
>