Beispiel #1
0
 public DemuxVfs(string path)
 {
     file = path.StartsWith ("/") ? FileFactory.NewForPath (path) : FileFactory.NewForUri (path);
     if (file.Exists) {
         using (var info = file.QueryInfo ("etag::value,access::can-read,access::can-write", FileQueryInfoFlags.None, null)) {
             IsReadable = info.GetAttributeBoolean ("access::can-read");
             IsWritable = info.GetAttributeBoolean ("access::can-write");
         }
     }
 }
Beispiel #2
0
 public DemuxVfs(string path)
 {
     file = path.StartsWith("/") ? FileFactory.NewForPath(path) : FileFactory.NewForUri(path);
     if (file.Exists)
     {
         using (var info = file.QueryInfo("etag::value,access::can-read,access::can-write", FileQueryInfoFlags.None, null)) {
             IsReadable = info.GetAttributeBoolean("access::can-read");
             IsWritable = info.GetAttributeBoolean("access::can-write");
         }
     }
 }