func (imd *Directory) AddSymlink(name, target string, permissions os.FileMode) *Symlink {
	imd, name = imd.resolveSubdir(name)
	sl := &Symlink{
		entry: entry{
			name:    name,
			mode:    permissions | os.ModeSymlink,
			size:    int64(len(target)),
			modTime: DefaultModTime,
		},
		target: target,
	}

	imd.addChild(sl)

	return sl
}
// AddSymlink adds a mock symlink with the specified name, target and permissions.
AddSymlink adds a mock symlink with the specified name, target and permissions.
// AddSymlink adds a mock symlink with the specified name target and permissions .
func (imd *Directory) AddSymlink(name, target string, permissions os.FileMode) *Symlink {
	imd, name = imd.resolveSubdir(name)
	sl := &Symlink{
		entry: entry{
			name:    name,
			mode:    permissions | os.ModeSymlink,
			size:    int64(len(target)),
			modTime: DefaultModTime,
		},
		target: target,
	}
	imd.addChild(sl)
	return sl
}
func ( imd * Directory ) AddSymlink ( name , target string , permissions os . FileMode ) * Symlink { imd , name = imd . resolveSubdir ( name ) sl := & Symlink { entry : entry { name : name , mode : permissions | os . ModeSymlink , size : int64 ( len ( target ) ) , modTime : DefaultModTime , } , target : target , } imd . addChild ( sl ) return sl }
AddSymlink adds a mock symlink with the specified name, target and permissions.
AddSymlink adds a mock symlink with the specified name target and permissions .