Instance Property

pathComponents

An array containing the path components. (read-only)

Declaration

var pathComponents: [String]? { get }

Discussion

This property contains an array containing the individual path components of the URL, each unescaped using the replacingPercentEscapes(using:) method. For example, in the URL file:///directory/directory%202/file, the path components array would be @[@"/", @"directory", @"directory 2", @"file"].