Inheritance: FileSystemEntry
示例#1
0
        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);
            }
        }
示例#2
0
		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;
			}
		}