Пример #1
0
 public static RwStatus CanRw(FileInfo fileInfo)
 {
     try
     {
         RwStatus rwStatus = new RwStatus {
             CanWrite = CanIWrite(fileInfo), CanRead = CanIRead(fileInfo)
         };
         return(rwStatus);
     }
     catch
     {
         return(null);
     }
 }
Пример #2
0
        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
                });;
            }
        }