github.com/reds/docker@v1.11.2-rc1/pkg/system/filesys.go (about)

     1  // +build !windows
     2  
     3  package system
     4  
     5  import (
     6  	"os"
     7  	"path/filepath"
     8  )
     9  
    10  // MkdirAll creates a directory named path along with any necessary parents,
    11  // with permission specified by attribute perm for all dir created.
    12  func MkdirAll(path string, perm os.FileMode) error {
    13  	return os.MkdirAll(path, perm)
    14  }
    15  
    16  // IsAbs is a platform-specific wrapper for filepath.IsAbs.
    17  func IsAbs(path string) bool {
    18  	return filepath.IsAbs(path)
    19  }