Enumerationswift 6.0.1FoundationEssentials
SearchPathDirectory
enum SearchPathDirectory
enum SearchPathDirectory
s20FoundationEssentials11FileManagerC19SearchPathDirectoryO
What are these?2810Q
import FoundationEssentials
class FileManager
case adminApplicationDirectory
case allApplicationsDirectory
case allLibrariesDirectory
case applicationDirectory
case applicationScriptsDirectory
case applicationSupportDirectory
case autosavedInformationDirectory
case cachesDirectory
case coreServiceDirectory
case demoApplicationDirectory
case desktopDirectory
case developerApplicationDirectory
case developerDirectory
case documentDirectory
case documentationDirectory
case downloadsDirectory
case inputMethodsDirectory
case itemReplacementDirectory
case libraryDirectory
case moviesDirectory
case musicDirectory
case picturesDirectory
case preferencePanesDirectory
case printerDescriptionDirectory
case sharedPublicDirectory
case trashDirectory
case userDirectory
init()
class var `default`: FileManager { get }
var currentDirectoryPath: String { get }
weak var delegate: (any FileManagerDelegate)? { get set }
var homeDirectoryForCurrentUser: URL { get }
var temporaryDirectory: URL { get }
func attributesOfFileSystem(forPath path: String) throws -> [FileAttributeKey : Any]
func attributesOfItem(atPath path: String) throws -> [FileAttributeKey : Any]
func changeCurrentDirectoryPath(_ path: String) -> Bool
func contents(atPath path: String) -> Data?
func contentsEqual(atPath path1: String, andPath path2: String) -> Bool
func contentsOfDirectory(atPath path: String) throws -> [String]
func copyItem(at srcURL: URL, to dstURL: URL) throws
func copyItem(atPath srcPath: String, toPath dstPath: String) throws
func createDirectory(at url: URL, withIntermediateDirectories createIntermediates: Bool, attributes: [FileAttributeKey : Any]? = nil) throws
func createDirectory(atPath path: String, withIntermediateDirectories createIntermediates: Bool, attributes: [FileAttributeKey : Any]? = nil) throws
func createFile(atPath path: String, contents data: Data?, attributes attr: [FileAttributeKey : Any]? = nil) -> Bool
func createSymbolicLink(at url: URL, withDestinationURL destURL: URL) throws
func createSymbolicLink(atPath path: String, withDestinationPath destPath: String) throws
func destinationOfSymbolicLink(atPath path: String) throws -> String
func fileExists(atPath path: String) -> Bool
func fileExists(atPath path: String, isDirectory: inout Bool) -> Bool
func homeDirectory(forUser userName: String) -> URL?
func isDeletableFile(atPath path: String) -> Bool
func isExecutableFile(atPath path: String) -> Bool
func isReadableFile(atPath path: String) -> Bool
func isWritableFile(atPath path: String) -> Bool
func linkItem(at srcURL: URL, to dstURL: URL) throws
func linkItem(atPath srcPath: String, toPath dstPath: String) throws
func moveItem(at srcURL: URL, to dstURL: URL) throws
func moveItem(atPath srcPath: String, toPath dstPath: String) throws
func removeItem(at URL: URL) throws
func removeItem(atPath path: String) throws
func setAttributes(_ attributes: [FileAttributeKey : Any], ofItemAtPath path: String) throws
func string(withFileSystemRepresentation str: UnsafePointer<CChar>, length len: Int) -> String
func subpathsOfDirectory(atPath path: String) throws -> [String]
func url(for directory: FileManager.SearchPathDirectory, in domain: FileManager.SearchPathDomainMask, appropriateFor url: URL?, create shouldCreate: Bool) throws -> URL
func urls(for directory: FileManager.SearchPathDirectory, in domainMask: FileManager.SearchPathDomainMask) -> [URL]
func withFileSystemRepresentation<R>(for path: String, _ body: (UnsafePointer<CChar>?) throws -> R) rethrows -> R
struct DirectoryEnumerationOptions
struct ItemReplacementOptions
struct SearchPathDomainMask
enum URLRelationship
struct UnmountOptions
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 RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
init?(rawValue: UInt)
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)