validateName(_:)
Check if a name is a valid directory name.
Declaration
class func validateName(_ name: String) throwsParameters
- name:
The name to validate.
Discussion
The name must not be empty, have characters unsafe for file systems, be longer than NAME_MAX, or using a reserved name such as the Unix “.” or “..” current and parent directory filenames.