filesys.go 426 B

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