Esempio n. 1
0
 public override int GetFileSize(string path)
 {
     lock (this.ioLock)
     {
         IRailFile irailFile = rail_api.RailFactory().RailStorageHelper().OpenFile(path);
         if (irailFile == null)
         {
             return(0);
         }
         int size = (int)irailFile.GetSize();
         irailFile.Close();
         return(size);
     }
 }
Esempio n. 2
0
 public override int GetFileSize(string path)
 {
     lock (ioLock)
     {
         IRailFile val = rail_api.RailFactory().RailStorageHelper().OpenFile(path);
         if (val != null)
         {
             int size = (int)val.GetSize();
             val.Close();
             return(size);
         }
         return(0);
     }
 }