Exemplo n.º 1
0
 public FileSystemInfo[] GetFileSystemInfos(String pattern)
 {
     if (pattern == null)
     {
         throw new ArgumentNullException("pattern");
     }
     return((FileSystemInfo[])(Directory.ScanDirectoryForInfos
                                   (FullPath, pattern, Directory.ScanType.DirectoriesAndFiles,
                                   typeof(FileSystemInfo))));
 }
Exemplo n.º 2
0
 public DirectoryInfo[] GetDirectories()
 {
     return((DirectoryInfo[])(Directory.ScanDirectoryForInfos
                                  (FullPath, null, Directory.ScanType.Directories,
                                  typeof(DirectoryInfo))));
 }
Exemplo n.º 3
0
 public FileSystemInfo[] GetFileSystemInfos()
 {
     return((FileSystemInfo[])(Directory.ScanDirectoryForInfos
                                   (FullPath, null, Directory.ScanType.DirectoriesAndFiles,
                                   typeof(FileSystemInfo))));
 }
Exemplo n.º 4
0
 // Get the contents of this directory.
 public FileInfo[] GetFiles()
 {
     return((FileInfo[])(Directory.ScanDirectoryForInfos
                             (FullPath, null, Directory.ScanType.Files,
                             typeof(FileInfo))));
 }