name

The name of the entry; the final component of the path.

DirectoryEntry.swift:27
var name: FilePath.Component { get }

If path is “/Users/tim/path-to-4T.key” then name will be “path-to-4T.key”.