Example #1
0
        public VfsDirectoryInfo(VfsFileSystem fileSystem, VfsJsonFileSystemInfo json)
        {
            _fileSystem = fileSystem;
            _href       = new Uri(json.Href);
            _name       = json.Name;
            _fullName   = VfsUtils.ToXDrive(_href);
            _mime       = json.Mime;
            _mtime      = DateTime.Parse(json.MTime).ToUniversalTime();
            _exists     = true;

            ((VfsDirectoryInfoFactory)_fileSystem.DirectoryInfo).UpdateCache(this);
        }
Example #2
0
 public VfsDirectory(VfsFileSystem fileSystem)
 {
     _fileSystem = fileSystem;
     _currentDir = VfsUtils.ToXDrive(_fileSystem._uri);
 }