func (d *Dir) Mkdir(name string) (dir *Dir, err error) {
	path := filepath.Join(d.Path, name)
	if err = os.Mkdir(path, 0755); err != nil {
		return
	}
	if dir, err = NewDir(path); err != nil {
		return
	}
	d.Dirs[name] = dir
	return
}
// Mkdir creates a new directory immediately inside of this directory
Mkdir creates a new directory immediately inside of this directory
// Mkdir creates a new directory immediately inside of this directory
func (d *Dir) Mkdir(name string) (dir *Dir, err error) {
	path := filepath.Join(d.Path, name)
	if err = os.Mkdir(path, 0755); err != nil {
		return
	}
	if dir, err = NewDir(path); err != nil {
		return
	}
	d.Dirs[name] = dir
	return
}
func ( d * Dir ) Mkdir ( name string ) ( dir * Dir , err error ) { path := filepath . Join ( d . Path , name ) if err = os . Mkdir ( path , 0755 ) ; err != nil { return } if dir , err = NewDir ( path ) ; err != nil { return } d . Dirs [ name ] = dir return }
Mkdir creates a new directory immediately inside of this directory
Mkdir creates a new directory immediately inside of this directory