Beispiel #1
0
 public bool Exists(string directory)
 {
     try {
         FileStat stat = new FileStat(directory);
         return(stat.IsDirectory);
     } catch {
         return(false);
     }
 }
Beispiel #2
0
 public bool Exists (string directory)
 {
     try {
         FileStat stat = new FileStat (directory);
         return stat.IsDirectory;
     } catch {
         return false;
     }
 }
Beispiel #3
0
 public bool Exists (SafeUri uri)
 {
     FileStat stat = new FileStat (uri.LocalPath);
     return stat.IsRegularFile && !stat.IsDirectory;
 }
Beispiel #4
0
 public long GetModifiedTime (SafeUri uri)
 {
     FileStat stat = new FileStat (uri.LocalPath);
     return stat.MTime;
 }
Beispiel #5
0
        public bool Exists(SafeUri uri)
        {
            FileStat stat = new FileStat(uri.LocalPath);

            return(stat.IsRegularFile && !stat.IsDirectory);
        }
Beispiel #6
0
        public long GetModifiedTime(SafeUri uri)
        {
            FileStat stat = new FileStat(uri.LocalPath);

            return(stat.MTime);
        }