Do we have any base in ZetaLongPath similar to "System.IO.FileSystemInfo" ?

Nov 28, 2014 at 1:46 PM
Edited Nov 28, 2014 at 2:19 PM
Hi All,


Is there any class in ZetaLongPath similar to "System.IO.FileSystemInfo"?

In system.IO namespace, I have below method

Please help how can I replicate the same with ZetaLongPath.dll?

Request you to please help me on this..

public static IEnumerable<FileSystemInfo> GetFileSystemInfos(string UNCPath)
{
DirectoryInfo rootDirectoryInfo = new DirectoryInfo(UNCPath);
List<FileSystemInfo> tempResults = new List<FileSystemInfo>();

var results = from collectionInfo in rootDirectoryInfo.GetFileSystemInfos("*." + item).Select(f => f).Where(f => ((f.Attributes & FileAttributes.Hidden) == 0) && f.Attributes != FileAttributes.Directory) orderby collectionInfo is DirectoryInfo descending select collectionInfo;
tempResults.AddRange(results);

var folderResults = from collectionInfo in rootDirectoryInfo.GetDirectories().Select(f => f).Where(f => (f.Attributes & FileAttributes.Hidden) == 0) orderby collectionInfo is DirectoryInfo descending
                                            select collectionInfo;
                        tempResults.AddRange(folderResults);

var sortedReulsts = from collectionInfo in tempResults
                                        orderby collectionInfo is DirectoryInfo descending select collectionInfo;
                    lstFileSystemInfo = sortedReulsts.ToList();
return lstFileSystemInfo;
}
===============================================
Regards
Suman123