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