armed/mkdirp


Make directory tree with one function call.

License: MIT

Language: Go


mkdirp

Make directory tree with one function call.

####Example

package "main"

import (
  "github.com/armed/mkdirp"
  "log"
)

func main() {
  err := mkdirp.Mk("/Users/armed/{somefolder1,somefolder2}/test/{data1,data2}")
  if err != nil {
    log.Fatal(err)
  }
}

Following directory tree will be created:

Users
|__armed
   |__somefolder1
   |  |__test
   |     |__data1
   |     |__data2
   |__somefolder2
      |__test
         |__data1
         |__data2

mkdirp.Mk function internally uses os.MkdirAll, and returns errors from it if any.

Project Statistics

Sourcerank 3
Repository Size 148 KB
Stars 2
Forks 0
Watchers 1
Open issues 0
Dependencies 0
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Artem Medeu

Packages Referencing this Repo

github.com/armed/mkdirp
Make directory tree with one function call.
Latest release v0.0.0-20131130152020-ca11de6afd41 - Published - 2 stars

Something wrong with this page? Make a suggestion

Last synced: 2023-10-12 15:59:13 UTC

Login to resync this repository