IOError

public enum IOError : String, Error

Input/output errors.

  • The file does not exist.

    Declaration

    Swift

    case noSuchFile = "No such file or directory"
  • The current process does not have permissions to do this operation.

    Declaration

    Swift

    case noPermission = "Insufficient access privileges"
  • The file is locked.

    Declaration

    Swift

    case isLocked = "The file is locked"
  • The file name is invalid.

    Declaration

    Swift

    case invalidName = "The file name is invalid"
  • The file is corrupted.

    Declaration

    Swift

    case isCorrupted = "The file is corrupted"
  • The current dist does not have enough space.

    Declaration

    Swift

    case outOfSpace = "The disk ran out of free space"
  • The directory is not empty.

    Declaration

    Swift

    case directoryNotEmpty = "The directory is not empty"
  • The target file already exists.

    Declaration

    Swift

    case fileExists = "The target file already exists"
  • The file attribute does not exist.

    Declaration

    Swift

    case attributeNotExist = "The attribute does not exist"
  • The attribute is not supported on this file system.

    Declaration

    Swift

    case attributesNotSupported = "Attributes not supported on this file system"
  • The attribute is read-only, thus can not be modified.

    Declaration

    Swift

    case fileSystemReadOnly = "The file system is read-only"
  • File attributes are not supported on this file system.

    Declaration

    Swift

    case fileAttributesNotSupported = "Attributes not supported for this file type"
  • The source and target paths are the same path.

    Declaration

    Swift

    case sameFile = "Source and target paths point to the same file"
  • The symbolic link can not be resolved.

    Declaration

    Swift

    case cantReadSymbolicLink = "The symbolic link can not be resolved"
  • The target directory of copy operation is inside the source directory.

    Declaration

    Swift

    case targetIsInsideSource = "The target directory is inside the source directory"
  • No such device or address.

    Declaration

    Swift

    case noSuchAddress = "No such device or address"
  • No such device.

    Declaration

    Swift

    case noSuchDevice = "No such device"
  • The file must be a directory.

    Declaration

    Swift

    case notDirectory = "Not a directory"
  • The file should not be a directory.

    Declaration

    Swift

    case isDirectory = "Is a directory"
  • Operation failed, but it may success a bit later.

    Declaration

    Swift

    case tryLater = "Try later"
  • Invalid argument.

    Declaration

    Swift

    case invalidArgument = "Invalid argument"
  • Illegal seek.

    Declaration

    Swift

    case illegalSeek = "Illegal seek"
  • Protocol error.

    Declaration

    Swift

    case protocolError = "Protocol error"
  • The network is unreachable.

    Declaration

    Swift

    case networkIsUnreachable = "Network is unreachable"
  • Connection timed out.

    Declaration

    Swift

    case connectionTimedOut = "Connection timed out"
  • Connection was refused.

    Declaration

    Swift

    case connectionRefused = "Connection was refused"
  • End of file.

    Declaration

    Swift

    case endOfFile = "Unexpected end of file"
  • Wrong encoding specified.

    Declaration

    Swift

    case wrongEncoding = "Wrong encoding"
  • Action is allowed only for files in the same file system.

    Declaration

    Swift

    case allowedOnlyInSameFileSystem = "Action is allowed only for files in the same file system"
  • Declaration

    Swift

    public var description: String