FileManager

class FileManager : NSObject
  • IO suspended version of FileManager.url(for:in:appropriateFor:create:). Refer to that method for further documentation.

    Declaration

    Swift

    func urlIO(
        for directory: FileManager.SearchPathDirectory,
        in domain: FileManager.SearchPathDomainMask,
        appropriateFor url: URL,
        create shouldCreate: Bool) -> IO<Error, URL>
  • IO suspended version of FileManager.contensOfDirectory(at:includingPropertiesForKeys:options:). Refer to that method for further documentation.

    Declaration

    Swift

    func contentsOfDirectoryIO(
        at url: URL,
        includingPropertiesForKeys keys: [URLResourceKey]?,
        options mask: FileManager.DirectoryEnumerationOptions = []) -> IO<Error, [URL]>
  • IO suspended version of FileManager.contentsOfDirectory(atPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func contentsOfDirectoryIO(atPath path: String) -> IO<Error, [String]>
  • IO suspended version of FileManager.subpathsOfDirectory(atPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func subpathsOfDirectoryIO(atPath path: String) -> IO<Error, [String]>
  • IO suspended version of FileManager.createDirectory(at:withIntermediateDirectories:attributes:). Refer to that method for further documentation.

    Declaration

    Swift

    func createDirectoryIO(
        at url: URL,
        withIntermediateDirectories createIntermediates: Bool,
        attributes: [FileAttributeKey: Any]? = nil) -> IO<Error, ()>
  • IO suspended version of FileManager.createDirectory(atPath:withIntermediateDirectories:attributes:). Refer to that method for further documentation.

    Declaration

    Swift

    func createDirectoryIO(
        atPath path: String,
        withIntermediateDirectories createIntermediates: Bool,
        attributes: [FileAttributeKey: Any]? = nil) -> IO<Error, ()>
  • IO suspended version of FileManager.createFile(atPath:contents:attributes:). Refer to that method for further documentation.

    Declaration

    Swift

    func createFileIO(
        atPath path: String,
        contents: Data?,
        attributes: [FileAttributeKey: Any]? = nil) -> IO<Error, Bool>
  • IO suspended version of FileManager.removeItem(at:). Refer to that method for further documentation.

    Declaration

    Swift

    func removeItemIO(at url: URL) -> IO<Error, ()>
  • IO suspended version of FileManager.removeItem(atPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func removeItemIO(atPath path: String) -> IO<Error, ()>
  • IO suspended version of FileManager.replaceItemAt(_:withItemAt:backupItemName:options:). Refer to that method for further documentation.

    Declaration

    Swift

    func replaceItemIO(
        at originalItemURL: URL,
        withItemAt newItemURL: URL,
        backupItemName: String? = nil,
        options: FileManager.ItemReplacementOptions = []) -> IO<Error, URL?>
  • IO suspended version of FileManager.copyItem(at:to:). Refer to that method for further documentation.

    Declaration

    Swift

    func copyItemIO(
        at originalItemURL: URL,
        to newItemURL: URL) -> IO<Error, ()>
  • IO suspended version of FileManager.copyItem(atPath:toPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func copyItemIO(
        atPath originalItemPath: String,
        toPath newItemPath: String) -> IO<Error, ()>
  • IO suspended version of FileManager.moveItem(at:to:). Refer to that method for further documentation.

    Declaration

    Swift

    func moveItemIO(
        at originalItemURL: URL,
        to newItemURL: URL) -> IO<Error, ()>
  • IO suspended version of FileManager.moveItem(atPath:toPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func moveItemIO(
        atPath originalItemPath: String,
        to newItemPath: String) -> IO<Error, ()>
  • IO suspended version of FileManager.createSymbolicLink(at:withDestinationPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func createSymbolicLinkIO(
        at url: URL,
        withDestinationURL destinationURL: URL) -> IO<Error, ()>
  • IO suspended version of FileManager.createSymbolicLink(atPath:withDestinationPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func createSymbolicLinkIO(
        atPath path: String,
        withDestinationPath destinationPath: String) -> IO<Error, ()>
  • IO suspended version of FileManager.linkItem(at:to:). Refer to that method for further documentation.

    Declaration

    Swift

    func linkItemIO(
        at url: URL,
        to destinationURL: URL) -> IO<Error, ()>
  • IO suspended version of FileManager.linkItem(atPath:toPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func linkItemIO(
        atPath path: String,
        toPath destinationPath: String) -> IO<Error, ()>
  • IO suspended version of FileManager.destinationOfSymbolicLink(atPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func destinationOfSymbolicLinkIO(atPath path: String) -> IO<Error, String>
  • IO suspended version of FileManager.componentsToDisplay(forPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func componentsToDisplayIO(forPath path: String) -> IO<Error, [String]?>
  • IO suspended version of FileManager.displayName(atPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func displayNameIO(atPath path: String) -> IO<Error, String>
  • IO suspended version of FileManager.attributesOfItem(atPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func attributesOfItemIO(atPath path: String) -> IO<Error, [FileAttributeKey : Any]>
  • IO suspended version of FileManager.attributesOfFileSystem(forPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func attributesOfFileSystemIO(forPath path: String) -> IO<Error, [FileAttributeKey : Any]>
  • IO suspended version of FileManager.setAttributes(_:ofItemAtPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func setAttributesIO(
        _ attrs: [FileAttributeKey: Any],
        ofItemAtPath path: String) -> IO<Error, ()>
  • IO suspended version of FileManager.contents(atPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func contentsIO(atPath path: String) -> IO<Error, Data?>
  • IO suspended version of FileManager.contentsEqual(atPath:andPath:). Refer to that method for further documentation.

    Declaration

    Swift

    func contentsEqualIO(
        atPath path: String,
        andPath otherPath: String) -> IO<Error, Bool>
  • IO suspended version of FileManager.changeCurrentDirectoryPath(_:). Refer to that method for further documentation.

    Declaration

    Swift

    func changeCurrentDirectoryPathIO(_ path: String) -> IO<Error, Bool>
  • IO suspended version of FileManager.trashItem(at:resultingItemURL:). Refer to that method for further documentation.

    Declaration

    Swift

    @available(iOS 11.0, *)
    func trashItemIO(
        at url: URL,
        resultingItemURL outResultingURL: AutoreleasingUnsafeMutablePointer<NSURL?>?) -> IO<Error, ()>
  • IO suspended version of FileManager.setUbiquitous(_:itemAt:destinationURL:). Refer to that method for further documentation.

    Declaration

    Swift

    func setUbiquitousIO(
        _ flag: Bool,
        itemAt url: URL,
        destinationURL: URL) -> IO<Error, ()>
  • IO suspended version of FileManager.startDownloadingUbiquitousItem(at:). Refer to that method for further documentation.

    Declaration

    Swift

    func startDownloadingUbiquitousItemIO(at url: URL) -> IO<Error, ()>
  • IO suspended version of FileManager.evictUbiquitousItem(at:). Refer to that method for further documentation.

    Declaration

    Swift

    func evictUbiquitousItemIO(at url: URL) -> IO<Error, ()>
  • IO suspended version of FileManager.url(forPublishingUbiquitousItemAt:expiration:). Refer to that method for further documentation.

    Declaration

    Swift

    func urlIO(
        forPublishingUbiquitousItemAt url: URL,
        expiration outDate: AutoreleasingUnsafeMutablePointer<NSDate?>?) -> IO<Error, URL>
  • IO suspended version of FileManager.getFileProviderServicesForItem(at:completionHandler:). Refer to that method for further documentation.

    Declaration

    Swift

    @available(OSX 10.13, iOS 11.0, *)
    func getFileProviderServicesForItemIO(at url: URL) -> IO<Error, [NSFileProviderServiceName : NSFileProviderService]>