Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
9.1k views
in .NET FTP by
I would really like to use this function to make sure I have data in the files I am sending. Any Ideals would be great.

Thanks
csDev

9 Answers

0 votes
by (162k points)
Well, the Size() command is there - look at the documentation.

I would really like to use this function to make sure I have data in the files I am sending. Any Ideals would be great.

Thanks
csDev
0 votes
by
I've tryed to use it and I get a SIZE not implemented or unimplemented exception. Any idea's why? I use the same array I used to find the filename so I am passing the correct string value.

Size(file[i]).ToString()

This should give me the size parse into a string correct.

csDev
0 votes
by (162k points)
That's because the FTP server you are talking to doesn't support the SIZE command - it is an FTP extension.

You could try DirDetails instead

I've tryed to use it and I get a SIZE not implemented or unimplemented exception. Any idea's why? I use the same array I used to find the filename so I am passing the correct string value.

Size(file[i]).ToString()

This should give me the size parse into a string correct.

csDev
0 votes
by
Could you give and example of DirDetails().

thanks

csDev
0 votes
by (162k points)
FTPFile[] files = ftp.DirDetails(".");

Could you give and example of DirDetails().

thanks

csDev
0 votes
by
Ftp server must not support that either.

FTPFile[] detail = ftp.DirDetails(".");
for (int i = 0; i < detail.Length; i++)
{
printDetails = printDetails + detail[i].ToString() + " \n";
}
label1.Text = printDetails;

Get exception "VMS OpenVMS 'Version' node on 'it lists my domain' "
something like this.
0 votes
by (162k points)
VMS isn't currently supported.

Ftp server must not support that either.

FTPFile[] detail = ftp.DirDetails(".");
for (int i = 0; i < detail.Length; i++)
{
printDetails = printDetails + detail[i].ToString() + " \n";
}
label1.Text = printDetails;

Get exception "VMS OpenVMS 'Version' node on 'it lists my domain' "
something like this.
0 votes
by
Well I am still greatful for your tool. It gets the file there. My only issue is error checking. How do I know that their is data in the file. I can see that the file made it with the Dir() method, just not sure if the contents made it.

csDev
0 votes
by (162k points)
You could get a full directory listing from Dir and check that the size of the file isn't 0.

Well I am still greatful for your tool. It gets the file there. My only issue is error checking. How do I know that their is data in the file. I can see that the file made it with the Dir() method, just not sure if the contents made it.

csDev

Categories

...