The following errors are returned from the FileOps functions.
| Constant | Code | Description |
|---|---|---|
| kFileOpsAlreadyExists | 101215 | A file with the specified name already exists |
| kFileOpsAlreadyWriteOpen | -49 | The file is already open with write permission |
| kFileOpsBadDrive | -56 | No such drive number |
| kFileOpsBadMasterBlock | -60 | Master directory block is bad; must re-initialize volume |
| kFileOpsBadName | -37 | Bad file name or volume name (perhaps zero-length) |
| kFileOpsCantMoveToOffspring | -122 | Attempted to move into offspring |
| kFileOpsCantOpenLockedFile | -61 | Cannot open a locked file |
| kFileOpsCrossDeviceLink | 100 | The system cannot move the file to a different device |
| kFileOpsDifferentVolume | -124 | The operation is not allowed to be carried out between two different volumes |
| kFileOpsDirectoryNotEmpty | 1100 | Directory is not empty, please use other parameters to delete the contents/delete recursively |
| kFileOpsDirectoryNotFound | -120 | Directory not found |
| kFileOpsDirFull | -33 | File/Directory full |
| kFileOpsDiskFull | 101206 | Disk full |
| kFileOpsDiskIOError | -36 | Disk I/O error |
| kFileOpsEndOfFile | 101207 | Logical end-of-file reached during read operation |
| kFileOpsErrorChkUTF8 | 995 | Cannot pass bChkUTF8 as kTrue when iOff or iMax is non-zero |
| kFileOpsExternalSystemError | -58 | External file system error |
| kFileOpsFileLocked | 101205 | File is locked |
| kFileOpsFileNotFound | 101201 | File not found |
| kFileOpsFileNotOpen | 101202 | File not open |
| kFileOpsFileTooLarge | 996 | The file is too large to be read by $readentirefile (its size must not exceed 0x7FFFFFE4 bytes) |
| kFileOpsHardwareVolumeLock | -44 | Volume is locked by a hardware setting |
| kFileOpsIncludeDirectories | 2 | Whether the listing includes volumes |
| kFileOpsIncludeFiles | 1 | Whether the listing includes files |
| kFileOpsIncludeVolumes | 4 | Whether the listing includes volumes |
| kFileOpsInfoActualResSize | 4096 | (macOS Only)The actual size of the file resource fork |
| kFileOpsInfoActualSize | 64 | The actual size of the file |
| kFileOpsInfoCalcDirectorySize | 32768 | The size of the directory on the file system. |
| kFileOpsInfoCreated | 128 | The creation date of the file (can only be set when running on macOS) |
| kFileOpsInfoCreatorCode | 512 | (macOS Only)The creator code of the file |
| kFileOpsInfoFullName | 4 | Full pathname of the file |
| kFileOpsInfoHidden | 16 | Boolean which indicates if the file is hidden |
| kFileOpsInfoIsDirectory | 8192 | If the path specified points to a directory |
| kFileOpsInfoLinkedName | 16384 | The name of the linked file (if any) |
| kFileOpsInfoModified | 256 | The modification date of the file (can only be set when running on macOS) |
| kFileOpsInfoName | 1 | Name of the file |
| kFileOpsInfoName83 | 2 | (Windows-ONLY)Name of the file in 8.3 format |
| kFileOpsInfoReadOnly | 8 | Boolean which indicates if the file is read only |
| kFileOpsInfoResSize | 2048 | (macOS Only)The size of the file resource fork on the file system (number of bytes used from file system) |
| kFileOpsInfoSize | 32 | The size of the file on the file system (number of bytes used from file system) |
| kFileOpsInfoTypeCode | 1024 | (macOS Only)The type code of the file |
| kFileOpsInternalSystemError | -127 | Internal file system error |
| kFileOpsInvalidEncoding | 1000 | Invalid encoding parameter passed to readcharacter/readfile or writecharacter/writefile. Must be a kUniType... constant, not kUniTypeBinary/Character, and when writing it cannot be kUniTypeAuto |
| kFileOpsInvalidFormat | -57 | Volume lacks Macintosh-format directory |
| kFileOpsMoreFilesOpen | -47 | One or more files are open |
| kFileOpsNoDefaultVolume | -50 | No default volume |
| kFileOpsNonHFSOperation | -123 | Attempt to do HFS operation on a non-HFS volume |
| kFileOpsNoOperation | 999 | Operation not supported on this platform |
| kFileOpsNoPath | 997 | No path supplied |
| kFileOpsOK | 0 | No Error |
| kFileOpsOpenApps | 2 | (macOS Only) Allows users to browse the content of applications via $getfilename, $putfilename and $selectdirectory |
| kFileOpsOutOfMemory | 12 | Out of memory |
| kFileOpsParamError | 1 | Too few parameters passed |
| kFileOpsPermissionDenied | 101203 | Permission denied. |
| kFileOpsPositionBeforeStart | -40 | Attempt to position before the start of the file |
| kFileOpsProblemDuringRename | -59 | Problem during rename |
| kFileOpsReadOnlyFile | -54 | Read only file |
| kFileOpsSelectApps | 1 | (macOS Only) Allows users to select applications via $getfilename, $putfilename and $selectdirectory |
| kFileOpsSoftwareVolumeLock | -46 | Volume is locked by a software flag |
| kFileOpsTooManyDirOpen | -121 | Too many working directories open |
| kFileOpsTooManyFilesOpen | -42 | Too many files open |
| kFileOpsUnknownError | 998 | Unknown error |
| kFileOpsVariableMustBeBinaryOrCharacter | 1101 | The data type of the vVariable parameter must be binary or character |
| kFileOpsVolumeAlreadyMounted | -55 | Specified volume is already mounted and on-line |
| kFileOpsVolumeNotFound | -35 | Specified volume doesn't exist |
| kFileOpsVolumeNotOnline | -53 | Volume not on-line |
| kFileOpsWindowsDisablePrompt | 4 | (Windows Only) Prevents the built-in system prompt asking if $putfilename can replace an existing file |