func (imd *Directory) AddDir(name string, permissions os.FileMode) *Directory {
	imd, name = imd.resolveSubdir(name)

	subdir := &Directory{
		entry: entry{
			name:    name,
			mode:    permissions | os.ModeDir,
			modTime: DefaultModTime,
		},
	}

	imd.addChild(subdir)

	return subdir
}
// AddDir adds a fake directory with a given name and permissions.
AddDir adds a fake directory with a given name and permissions.
// AddDir adds a fake directory with a given name and permissions .
func (imd *Directory) AddDir(name string, permissions os.FileMode) *Directory {
	imd, name = imd.resolveSubdir(name)
	subdir := &Directory{
		entry: entry{
			name:    name,
			mode:    permissions | os.ModeDir,
			modTime: DefaultModTime,
		},
	}
	imd.addChild(subdir)
	return subdir
}
func ( imd * Directory ) AddDir ( name string , permissions os . FileMode ) * Directory { imd , name = imd . resolveSubdir ( name ) subdir := & Directory { entry : entry { name : name , mode : permissions | os . ModeDir , modTime : DefaultModTime , } , } imd . addChild ( subdir ) return subdir }
AddDir adds a fake directory with a given name and permissions.
AddDir adds a fake directory with a given name and permissions .