Theory and Practice
About Archives Categories Tags Authors 中文 ไทย

[Golang] mkdir -p

February 22, 2016
Edit on Github

mkdir -p command in Golang

import "os"

func Mkdirp(dirpath string) {
        os.MkdirAll(dirpath, 0775)
}

Tested on: Ubuntu Linux 15.10, Go 1.6.


References:

[1]golang mkdir p

Author: Siong-Ui Te
∈ Category: Go
∑ Tags: Go , Golang , Bash , Commandline
Powered by Github Pages, Pelican, pyScss.