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