github.com/uppal0016/docker_new@v0.0.0-20240123060250-1c98be13ac2c/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  }