How i recursively populate a tree type structure using the directories and sub directories in the root folder. I mean to say is there any class like DirectoryInfo in System.IO namespace
DirectoryInfo di=new DirectoryInfo("path");
The latest trial release of edtFTPnet/PRO, ExFTPConnection and SecureFTPConnection has a new method
FTPFile[] GetFileInfos(string directory, bool includeSubdirectories)
, which will optionally return the contents of the subdirectories. FTPFile has a new property,
Children, which, if it is a directory, will contain the entries of that directory.
We have no plans to add this functionality to edtFTPnet/Free.
How i can set the current working Directory using path.
FTPConnection.ServerDirectory, ExFTPConnection.ServerDirectory, SecureFTPConnection.ServerDirectory
How can i check whether an object is File or Directory?
FTPFile.Dir
How Can i move/copy files from one directory to another in same server under same rootdirectory.
Some servers allow you to move files between directories using the same command as is used for renaming. You can do this in all versions of edtFTPnet using the Rename method. For servers that don't support this you'll have to download the file to your local machine, upload it to the new location and delete the old copy.
Can i move the directory to different location in same server under same rootdirectory.
No, you'll have to download the entire directory, upload it to the new location, and then delete the old one. edtFTPnet/Express and edtFTPnet/PRO have methods for downloading, uploading and deleting directories, but these are not present in edtFTPnet/Free.
- Hans (EnterpriseDT)[/i][/quote]