public VfsBakedAsset_FileInfo(IMongoDatabase db, IMongoCollection <Mongo.BakedAssets> bac, VfsBakedAssets vfsBakedAssets, IVfsPath path) { this.db = db; this.vfsBakedAssets = vfsBakedAssets; this.path = path; }
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); }
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); }
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); }
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; } }
int IVfsFilesystem.StatFS(IVfsPath path) { throw new NotImplementedException(); }
public VfsBakedAsset_FS(IMongoDatabase db, VfsBakedAssets vfsBakedAssets, IVfsPath path) { this.db = db; this.vfsBakedAssets = vfsBakedAssets; this.path = path; }