FilePath.Component
Represents an individual, non-root component of a file path.
Declaration
struct ComponentOverview
Components can be one of the special directory components (. or ..) or a file or directory name. Components are never empty and never contain the directory separator.
Example:
var path: FilePath = "/tmp"
let file: FilePath.Component = "foo.txt"
file.kind == .regular // true
file.extension // "txt"
path.append(file) // path is "/tmp/foo.txt"