Instance Property

level

The number of levels deep the current object is in the directory hierarchy being enumerated.

Declaration

var level: Int { get }

Discussion

The number of levels, with the directory passed to enumerator(at:includingPropertiesForKeys:options:errorHandler:) (NSFileManager) considered to be level 0.

See Also

Getting File and Directory Attributes

var directoryAttributes: [FileAttributeKey : Any]?

A dictionary with the attributes of the directory at which enumeration started.

var fileAttributes: [FileAttributeKey : Any]?

A dictionary with the attributes of the most recently returned file or subdirectory (as referenced by the pathname).