MkdirAll creates a directory path without traversing symbolic links.
(name string, perm os.FileMode)
| 140 | |
| 141 | // MkdirAll creates a directory path without traversing symbolic links. |
| 142 | func (r *Root) MkdirAll(name string, perm os.FileMode) error { |
| 143 | local, err := r.localPath(name) |
| 144 | if err != nil { |
| 145 | return err |
| 146 | } |
| 147 | if local == "." { |
| 148 | return nil |
| 149 | } |
| 150 | root, err := r.openDirectories(local, perm) |
| 151 | if err != nil { |
| 152 | return err |
| 153 | } |
| 154 | return root.Close() |
| 155 | } |
| 156 | |
| 157 | // Validate checks name using the same lexical rules as [ValidateChild]. |
| 158 | func (r *Root) Validate(name string) error { |