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

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