public static RwStatus CanRw(FileInfo fileInfo) { try { RwStatus rwStatus = new RwStatus { CanWrite = CanIWrite(fileInfo), CanRead = CanIRead(fileInfo) }; return(rwStatus); } catch { return(null); } }
public static RwStatus CanRw(FileInfo fileInfo) { BlockingMq Mq = BlockingMq.GetMq(); try { RwStatus rwStatus = new RwStatus { CanWrite = CanIWrite(fileInfo), CanRead = CanIRead(fileInfo) }; return(rwStatus); } catch (Exception e) { Mq.Error(e.ToString()); return(new RwStatus { CanWrite = false, CanRead = false });; } }