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

            this.path = path;
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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;
            }
        }
Esempio n. 6
0
 int IVfsFilesystem.StatFS(IVfsPath path)
 {
     throw new NotImplementedException();
 }
Esempio n. 7
0
 public VfsBakedAsset_FS(IMongoDatabase db, VfsBakedAssets vfsBakedAssets, IVfsPath path)
 {
     this.db             = db;
     this.vfsBakedAssets = vfsBakedAssets;
     this.path           = path;
 }