The FSError values are only used for FSSetEmulatedError and FSGetEmulatedError to emulate fs errors (and interally in the FSClient struct).
No FS function is ever returning FSError values.
This PR removes the mapping for all FSError values, fixes the FS_STATUS_CANCELLED mapping, and add the mapping for the missing FSStatus values.
I couldn't find a matching value for FS_STATUS_ALREADY_OPEN, FS_STATUS_CORRUPTED and FS_STATUS_FATAL_ERROR so I decided to return EIO, not sure if there is a better option
The FSError values are only used for
FSSetEmulatedError
andFSGetEmulatedError
to emulate fs errors (and interally in the FSClient struct).No FS function is ever returning FSError values.
This PR removes the mapping for all FSError values, fixes the
FS_STATUS_CANCELLED
mapping, and add the mapping for the missing FSStatus values. I couldn't find a matching value for FS_STATUS_ALREADY_OPEN, FS_STATUS_CORRUPTED and FS_STATUS_FATAL_ERROR so I decided to return EIO, not sure if there is a better option