Jan 31, 2014 at 9:17 AM
i am done with deleting files and exchanging files.

now i want to know can we get the info like what and how many directories are there at particular remote location :)

thankx in advance :)
Feb 12, 2014 at 12:35 PM
Have a look at RAPI.EnumerateFiles(). It returns an array of FileInformation.
Therein you'll find the FileAttributes with 16 for example indicating a directory.

Assuming you have your RAPI object instanced as rapi and it is connected,
this will give you the names of all directories starting with 'backup_':
            var backupDirs = from dir in rapi.EnumerateFiles("*")
                             where (FileAttributes)dir.FileAttributes == FileAttributes.Directory
                             where dir.FileName.StartsWith("backup_")
                             select dir.FileName;
Of course you don't need to use linq ;)

Hope it helps.
Marked as answer by neeraj2005 on 2/12/2014 at 11:54 PM
Feb 13, 2014 at 7:54 AM
thanks Jasper for you help. i have alredy done it with my own. by the same method.

thanks once again. :)