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); } }
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); } }