Regex
Inheritance: FanObj
Example #1
0
 public override List list(Regex pattern)
 {
     return new List(Sys.FileType, 0);
 }
Example #2
0
 public override List list(Regex pattern)
 {
     int len = 0;
       FileSystemInfo[] list = null;
       if (m_file is DirectoryInfo)
       {
     list = (m_file as DirectoryInfo).GetFileSystemInfos();
     len = list.Length;
       }
       List acc = new List(Sys.FileType, len);
       for (int i=0; i<len; i++)
       {
     FileSystemInfo f = list[i];
     if (pattern != null && !pattern.matches(f.Name)) continue;
     string name = fileNameToUriName(f.Name);
     acc.add(new LocalFile(m_uri.plusName(name, f is DirectoryInfo), f));
       }
       return acc;
 }