SwiftextensionPodcastsFoundation

extension NSFileManager

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

extends{}

Members 24

  1. funcstatic homeDirectoryPath(forUser: String?) -> System.FilePath?
  2. varstatic var homeDirectoryPathForCurrentUser: System.FilePath { get }
  3. varstatic var temporaryDirectoryPath: System.FilePath { get }
  4. varstatic var uniqueTemporaryDirectoryPath: System.FilePath { get }
  5. funccontentsOfDirectory(at: System.FilePath) throws -> [System.FilePath]
  6. funccopyItem(at: System.FilePath, to: System.FilePath) throws -> ()
  7. funccreateDirectory(at: System.FilePath, withIntermediateDirectories: Bool, attributes: [NSFileAttributeKey : Any]?) throws -> ()
  8. funccreateDirectory(url: Foundation.URL, createIntermediates: Bool) throws -> ()
  9. funccreateFile(at: System.FilePath, contents: Foundation.Data?, attributes: [NSFileAttributeKey : Any]?) -> Bool
  10. funccreateHardLink(at: System.FilePath, to: System.FilePath) throws -> ()
  11. funccreateSymbolicLink(at: System.FilePath, to: System.FilePath) throws -> ()
  12. funcdestinationOfSymbolicLink(at: System.FilePath) throws -> System.FilePath
  13. funcdirectoryContents(at: System.FilePath) -> NSFileManager.DirectoryContents?
  14. funcdirectoryExists(at: System.FilePath) -> Bool
  15. funcdirectoryExists(atPath: String) -> Bool
  16. funcfileExists(at: String, isDirectory: Bool) -> Bool
  17. funcfileExists(at: System.FilePath) -> Bool
  18. funcisDeletableFile(at: System.FilePath) -> Bool
  19. funcisExecutableFile(at: System.FilePath) -> Bool
  20. funcisReadableFile(at: System.FilePath) -> Bool
  21. funcisWritableFile(at: System.FilePath) -> Bool
  22. funcitemExists(at: System.FilePath) -> Bool
  23. funcmoveItem(at: System.FilePath, to: System.FilePath) throws -> ()
  24. funcremoveItem(at: System.FilePath) throws -> ()
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?
}