Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.4k views
in .NET FTP by
How do I find the following details for a File/Folder:
1. Hidden - ?
2. Archive - ?
3. Directory - FTPFile.Dir
4. ReadOnly - ?
5. System Data - ?

3 Answers

0 votes
by (162k points)
Look at DirDetails and FTPFile

How do I find the following details for a File/Folder:
1. Hidden - ?
2. Archive - ?
3. Directory - FTPFile.Dir
4. ReadOnly - ?
5. System Data - ?
0 votes
by
Thanks Bruce for your answer.

1. Hidden - ?
2. Archive - ?
3. Directory - FTPFile.Dir
4. ReadOnly - FTPFile.Permissions helps if the System is Unix otherwise we do not have a Permissions string.
5. System - ?

.NET provides the File.GetAttributes functions from which we can later find whether the File/Directory has the attribute Hidden, Archive and System.
http://msdn.microsoft.com/library/defau ... stopic.asp

However when I get a remote File/Directory FTPFile does not allow me to know these details?

Should I download the File and then use .NET libraries to know these(Hidden, Archive and System) properties?
Even if I did the above does it solve the issue?
How do I then download a Folder without downloading it contents?

Any leads in this respect would be welcome.
0 votes
by (162k points)
Archive is windows specific, and aren't generally supplied by FTP servers - meaningless in the FTP context.

Hidden == not readable, i.e. 'r' is missing from the permissions string (of user/group/world).

e.g. rw-rw-r is not writable for world but is for user and group

Thanks Bruce for your answer.

1. Hidden - ?
2. Archive - ?
3. Directory - FTPFile.Dir
4. ReadOnly - FTPFile.Permissions helps if the System is Unix otherwise we do not have a Permissions string.
5. System - ?

.NET provides the File.GetAttributes functions from which we can later find whether the File/Directory has the attribute Hidden, Archive and System.
http://msdn.microsoft.com/library/defau ... stopic.asp

However when I get a remote File/Directory FTPFile does not allow me to know these details?

Should I download the File and then use .NET libraries to know these(Hidden, Archive and System) properties?
Even if I did the above does it solve the issue?
How do I then download a Folder without downloading it contents?

Any leads in this respect would be welcome.

Categories

...