override internal IEnumerable <FileSystemEntry> ImplFindFiles(String Path) { String CachedRealPath = RealPath(Path); DirectoryInfo DirectoryInfo = new DirectoryInfo(CachedRealPath); foreach (var Item in DirectoryInfo.EnumerateFileSystemInfos()) { if (!Item.FullName.StartsWith(CachedRealPath)) { throw(new Exception("Unexpected FullName")); } if (Item.Attributes.HasFlag(FileAttributes.Hidden)) { continue; } var FileSystemEntry = new LocalFileSystemEntry(this, Path + "/" + Item.Name, Item); //FileSystemEntry.Size = File.get //Item.Attributes == FileAttributes. // //FileSystemEntry.Time = Item. yield return(FileSystemEntry); } }
override protected IEnumerable<FileSystemEntry> ImplFindFiles(String Path) { String CachedRealPath = RealPath(Path); DirectoryInfo DirectoryInfo = new DirectoryInfo(CachedRealPath); foreach (var Item in DirectoryInfo.EnumerateFileSystemInfos()) { if (!Item.FullName.StartsWith(CachedRealPath)) { throw(new Exception("Unexpected FullName")); } if (Item.Attributes.HasFlag(FileAttributes.Hidden)) { continue; } var FileSystemEntry = new LocalFileSystemEntry(this, Path + "/" + Item.Name, Item); //FileSystemEntry.Size = File.get //Item.Attributes == FileAttributes. // //FileSystemEntry.Time = Item. yield return FileSystemEntry; } }