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

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

            return(stat.MTime);
        }