SwiftextensionPodcastsFoundation
extension NSFileManager
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
extends{}
classNSFileManager
Members 24
- func
static homeDirectoryPath(forUser: String?) -> System.FilePath? - var
static var homeDirectoryPathForCurrentUser: System.FilePath { get } - var
static var temporaryDirectoryPath: System.FilePath { get } - var
static var uniqueTemporaryDirectoryPath: System.FilePath { get } - func
contentsOfDirectory(at: System.FilePath) throws -> [System.FilePath] - func
copyItem(at: System.FilePath, to: System.FilePath) throws -> () - func
createDirectory(at: System.FilePath, withIntermediateDirectories: Bool, attributes: [NSFileAttributeKey : Any]?) throws -> () - func
createDirectory(url: Foundation.URL, createIntermediates: Bool) throws -> () - func
createFile(at: System.FilePath, contents: Foundation.Data?, attributes: [NSFileAttributeKey : Any]?) -> Bool - func
createHardLink(at: System.FilePath, to: System.FilePath) throws -> () - func
createSymbolicLink(at: System.FilePath, to: System.FilePath) throws -> () - func
destinationOfSymbolicLink(at: System.FilePath) throws -> System.FilePath - func
directoryContents(at: System.FilePath) -> NSFileManager.DirectoryContents? - func
directoryExists(at: System.FilePath) -> Bool - func
directoryExists(atPath: String) -> Bool - func
fileExists(at: String, isDirectory: Bool) -> Bool - func
fileExists(at: System.FilePath) -> Bool - func
isDeletableFile(at: System.FilePath) -> Bool - func
isExecutableFile(at: System.FilePath) -> Bool - func
isReadableFile(at: System.FilePath) -> Bool - func
isWritableFile(at: System.FilePath) -> Bool - func
itemExists(at: System.FilePath) -> Bool - func
moveItem(at: System.FilePath, to: System.FilePath) throws -> () - func
removeItem(at: System.FilePath) throws -> ()
Header
extension __C.NSFileManager { struct DirectoryContentsIterator { let enumerator: __C.NSDirectoryEnumerator? let path: System.FilePath func next() -> System.FilePath? } struct DirectoryContents { let fileManager: __C.NSFileManager let path: System.FilePath func makeIterator() -> __C.NSFileManager.DirectoryContentsIterator } func createFile(at: System.FilePath, contents: Foundation.Data?, attributes: [__C.NSFileAttributeKey : Any]?) -> Swift.Bool func fileExists(at: Swift.String, isDirectory: Swift.Bool) -> Swift.Bool func fileExists(at: System.FilePath) -> Swift.Bool func itemExists(at: System.FilePath) -> Swift.Bool func removeItem(at: System.FilePath) throws func createHardLink(at: System.FilePath, to: System.FilePath) throws func isReadableFile(at: System.FilePath) -> Swift.Bool func isWritableFile(at: System.FilePath) -> Swift.Bool func createDirectory(at: System.FilePath, withIntermediateDirectories: Swift.Bool, attributes: [__C.NSFileAttributeKey : Any]?) throws func createDirectory(url: Foundation.URL, createIntermediates: Swift.Bool) throws func directoryExists(at: System.FilePath) -> Swift.Bool func directoryExists(atPath: Swift.String) -> Swift.Bool func isDeletableFile(at: System.FilePath) -> Swift.Bool func isExecutableFile(at: System.FilePath) -> Swift.Bool func directoryContents(at: System.FilePath) -> __C.NSFileManager.DirectoryContents? func createSymbolicLink(at: System.FilePath, to: System.FilePath) throws func contentsOfDirectory(at: System.FilePath) throws -> [System.FilePath] func destinationOfSymbolicLink(at: System.FilePath) throws -> System.FilePath func copyItem(at: System.FilePath, to: System.FilePath) throws func moveItem(at: System.FilePath, to: System.FilePath) throws static var homeDirectoryPathForCurrentUser: System.FilePath { get } static var temporaryDirectoryPath: System.FilePath { get } static var uniqueTemporaryDirectoryPath: System.FilePath { get } static func homeDirectoryPath(forUser: Swift.String?) -> System.FilePath? }