Validate checks name using the same lexical rules as [ValidateChild].
(name string)
| 156 | |
| 157 | // Validate checks name using the same lexical rules as [ValidateChild]. |
| 158 | func (r *Root) Validate(name string) error { |
| 159 | _, err := r.localPath(name) |
| 160 | return err |
| 161 | } |
| 162 | |
| 163 | // Create creates a new file beneath the root. Creation is exclusive unless an |
| 164 | // existing regular file is safely opened and truncated for replacement. |
no test coverage detected