Variable FsErrConst

FsErr: {
    Closed: 12;
    Fail: 1;
    InvalidEncoding: 3;
    InvalidPath: 11;
    IsClosed: 10;
    IsDirectory: 5;
    IsFile: 5;
    IsRoot: 2;
    NotFound: 9;
    NotModified: 6;
    NotSupported: 4;
    PermissionDenied: 7;
    UserAbort: 8;
} = ...

Result type for file system operations

Type declaration

  • ReadonlyClosed: 12

    Trying to operate on a file that has been closed

  • ReadonlyFail: 1

    Generic error

  • ReadonlyInvalidEncoding: 3

    Invalid encoding

  • ReadonlyInvalidPath: 11

    If the path is invalid, for example trying to get the parent of root

  • ReadonlyIsClosed: 10

    Trying to do stuff to a closed file

  • ReadonlyIsDirectory: 5

    The operation does not apply to a directory

  • ReadonlyIsFile: 5

    The operation does not apply to a file

  • ReadonlyIsRoot: 2

    The operation does not apply to the root directory

  • ReadonlyNotFound: 9

    Not found

  • ReadonlyNotModified: 6

    The file was not modified since the last check

  • ReadonlyNotSupported: 4

    Not supported

  • ReadonlyPermissionDenied: 7

    Permission error

  • ReadonlyUserAbort: 8

    User abort