Open Classswift 6.0.3Foundation->FoundationEssentials
DirectoryEnumerator
class DirectoryEnumerator
class DirectoryEnumerator
s20FoundationEssentials11FileManagerC0A0E19DirectoryEnumeratorC
What are these?ZNOT
import FoundationEssentials
import Foundation
class FileManager
class NSEnumerator
func componentsToDisplay(forPath path: String) -> [String]?
func contentsOfDirectory(at url: URL, includingPropertiesForKeys keys: [URLResourceKey]?, options mask: FileManager.DirectoryEnumerationOptions = []) throws -> [URL]
func displayName(atPath path: String) -> String
func enumerator(at url: URL, includingPropertiesForKeys keys: [URLResourceKey]?, options mask: FileManager.DirectoryEnumerationOptions = [], errorHandler handler: ((URL, any Error) -> Bool)? = nil) -> FileManager.DirectoryEnumerator?
func enumerator(atPath path: String) -> FileManager.DirectoryEnumerator?
func fileExists(atPath path: String, isDirectory: UnsafeMutablePointer<ObjCBool>?) -> Bool
func fileSystemRepresentation(withPath path: String) -> UnsafePointer<Int8>
func getRelationship(_ outRelationship: UnsafeMutablePointer<FileManager.URLRelationship>, of directory: FileManager.SearchPathDirectory, in domainMask: FileManager.SearchPathDomainMask, toItemAt url: URL) throws
func getRelationship(_ outRelationship: UnsafeMutablePointer<FileManager.URLRelationship>, ofDirectoryAt directoryURL: URL, toItemAt otherURL: URL) throws
func mountedVolumeURLs(includingResourceValuesForKeys propertyKeys: [URLResourceKey]?, options: FileManager.VolumeEnumerationOptions = []) -> [URL]?
Returns an array of URLs that identify the mounted volumes available on the device.
func replaceItem(at originalItemURL: URL, withItemAt newItemURL: URL, backupItemName: String?, options: FileManager.ItemReplacementOptions = []) throws -> URL?
func replaceItemAt(_ originalItemURL: URL, withItemAt newItemURL: URL, backupItemName: String? = nil, options: FileManager.ItemReplacementOptions = []) throws -> URL?
func subpaths(atPath path: String) -> [String]?
func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor reference: URL?, create shouldCreate: Bool) throws -> URL
struct VolumeEnumerationOptions
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol NSObjectProtocol : AnyObject
The NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
protocol Sequence<Element>
A type that provides sequential, iterated access to its elements.
var directoryAttributes: [FileAttributeKey : Any]? { get }
var fileAttributes: [FileAttributeKey : Any]? { get }
var level: Int { get }
func skipDescendants()