func osOpenDir(name string) (*os.File, error) {
	f, err := os.Open(name)
	if err != nil {
		return nil, err
	}
	fi, err := f.Stat()
	if err != nil {
		f.Close()
		return nil, err
	}
	if !fi.IsDir() {
		f.Close()
		return nil, errors.New("not a directory")
	}
	return f, nil
}
// osOpenDir opens the local absolute path name, and returns an open file handle to it, 
// as long as it is an existing directory.
osOpenDir opens the local absolute path name, and returns an open file handle to it,
as long as it is an existing directory.
// osOpenDir opens the local absolute path name and returns an open file handle to it // as long as it is an existing directory .
func osOpenDir(name string) (*os.File, error) {
	f, err := os.Open(name)
	if err != nil {
		return nil, err
	}
	fi, err := f.Stat()
	if err != nil {
		f.Close()
		return nil, err
	}
	if !fi.IsDir() {
		f.Close()
		return nil, errors.New("not a directory")
	}
	return f, nil
}
func osOpenDir ( name string ) ( * os . File , error ) { f , err := os . Open ( name ) if err != nil { return nil , err } fi , err := f . Stat ( ) if err != nil { f . Close ( ) return nil , err } if ! fi . IsDir ( ) { f . Close ( ) return nil , errors . New ( " " ) } return f , nil }
osOpenDir opens the local absolute path name, and returns an open file handle to it,
as long as it is an existing directory.
osOpenDir opens the local absolute path name and returns an open file handle to it as long as it is an existing directory .