// mkParentDir makes the parent of the native path dirPath if
// necessary and any directories above that
mkParentDir makes the parent of the native path dirPath if
necessary and any directories above that
// mkParentDir makes the parent of the native path dirPath if // necessary and any directories above that
func (f *Fs) mkParentDir(dirPath string) error {
	if strings.HasSuffix(dirPath, "/") {
		dirPath = dirPath[:len(dirPath)-1]
	}
	parent := path.Dir(dirPath)
	if parent == "." {
		parent = ""
	}
	return f.mkdir(parent)
}
func ( f * Fs ) mkParentDir ( dirPath string ) error { if strings . HasSuffix ( dirPath , " " ) { dirPath = dirPath [ : len ( dirPath ) - 1 ] } parent := path . Dir ( dirPath ) if parent == " " { parent = " " } return f . mkdir ( parent ) }
mkParentDir makes the parent of the native path dirPath if
necessary and any directories above that
mkParentDir makes the parent of the native path dirPath if necessary and any directories above that
// defer log.Trace(dirPath, "")("") // chop off trailing / if it exists