public VfsBakedAsset_FileInfo(IMongoDatabase db, IMongoCollection <Mongo.BakedAssets> bac, VfsBakedAssets vfsBakedAssets, IVfsPath path)
        {
            this.db             = db;
            this.vfsBakedAssets = vfsBakedAssets;

            this.path = path;
        }
Exemplo n.º 2
0
        IVfsFileInfo IVfsFilesystem.FileInfo(IVfsPath path)
        {
            var file = new VfsBakedAsset_FileInfo(db, bac, this, path);
            var com  = new VfsBakedAsset_Common(db, bac, this, null, file, path);

            file._attachCom(com);

            return(file);
        }
Exemplo n.º 3
0
        IVfsDirectoryInfo IVfsFilesystem.DirectoryInfo(IVfsPath path)
        {
            var dir = new VfsBakedAsset_Directory(db, bac, this, path);
            var com = new VfsBakedAsset_Common(db, bac, this, dir, null, path);

            dir._attachCom(com);

            return(dir);
        }
Exemplo n.º 4
0
        public static int Open(IVfsPath path, int flags, mode_t mode = default)
        {
            var fd = LibC.open(path.toNullTerm(), 0);

            if (LibC.errno != 0)
            {
                return(-LibC.errno);
            }
            return(fd);
        }
Exemplo n.º 5
0
        public VfsBakedAsset_Common(IMongoDatabase db, IMongoCollection <BakedAssets> bac, VfsBakedAssets vfsBakedAssets, VfsBakedAsset_Directory dir, VfsBakedAsset_FileInfo file, IVfsPath path)
        {
            this.db             = db;
            this.bac            = bac;
            this.vfsBakedAssets = vfsBakedAssets;
            this.dir            = dir;
            this.file           = file;
            this.path           = path;

            if (dir != null)
            {
                com = dir;
            }
            if (file != null)
            {
                com = file;
            }
        }
Exemplo n.º 6
0
 int IVfsFilesystem.StatFS(IVfsPath path)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 7
0
 public VfsBakedAsset_FS(IMongoDatabase db, VfsBakedAssets vfsBakedAssets, IVfsPath path)
 {
     this.db             = db;
     this.vfsBakedAssets = vfsBakedAssets;
     this.path           = path;
 }