OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Enumerations
FileSystemEnums.h File Reference

Enumerations

enum class  FileType { FILE_INVALID , FILE_REGULAR , FILE_DIRECTORY }
 
enum class  FileSystemError {
  FS_LS_FAILED_PATH_DOESNT_EXIST , FS_LS_FAILED_PATH_IS_FILE , FS_LS_FAILED_PATH_NOT_ACCESSIBLE , FS_READ_FAILED_PATH_NOT_READABLE ,
  FS_READ_FAILED_PATH_DOESNT_EXIST , FS_READ_FAILED_PATH_IS_DIR , FS_READ_FAILED_PATH_NOT_ACCESSIBLE , FS_WRITE_FAILED_PATH_NOT_WRITEABLE ,
  FS_WRITE_FAILED_FILE_IN_PATH , FS_WRITE_FAILED_PATH_IS_DIR , FS_WRITE_FAILED_PATH_NOT_ACCESSIBLE , FS_RENAME_FAILED_DST_NOT_WRITEABLE ,
  FS_RENAME_FAILED_SRC_NOT_WRITEABLE , FS_RENAME_FAILED_DST_NOT_ACCESSIBLE , FS_RENAME_FAILED_SRC_NOT_ACCESSIBLE , FS_RENAME_FAILED_SRC_DOESNT_EXIST ,
  FS_RENAME_FAILED_DST_IS_DIR , FS_RENAME_FAILED_SRC_IS_DIR_DST_IS_FILE , FS_RENAME_FAILED_SRC_IS_PARENT_OF_DST , FS_REMOVE_FAILED_PATH_NOT_WRITEABLE ,
  FS_REMOVE_FAILED_PATH_NOT_ACCESSIBLE
}
 

Enumeration Type Documentation

◆ FileSystemError

enum class FileSystemError
strong

Naming is is FS_<OP>_FAILED_<REASON>.

Reasons are sorted by priority. It is expected that if an operation fails due to several different problems, then the highest priority Code will be used. E.g. if a filesystem isn't writeable, it doesn't matter if we're trying to remove root - the error on rename is always that the target is not writeable (because it can't be).

Enumerator
FS_LS_FAILED_PATH_DOESNT_EXIST 
FS_LS_FAILED_PATH_IS_FILE 
FS_LS_FAILED_PATH_NOT_ACCESSIBLE 
FS_READ_FAILED_PATH_NOT_READABLE 
FS_READ_FAILED_PATH_DOESNT_EXIST 
FS_READ_FAILED_PATH_IS_DIR 
FS_READ_FAILED_PATH_NOT_ACCESSIBLE 
FS_WRITE_FAILED_PATH_NOT_WRITEABLE 
FS_WRITE_FAILED_FILE_IN_PATH 
FS_WRITE_FAILED_PATH_IS_DIR 
FS_WRITE_FAILED_PATH_NOT_ACCESSIBLE 
FS_RENAME_FAILED_DST_NOT_WRITEABLE 
FS_RENAME_FAILED_SRC_NOT_WRITEABLE 
FS_RENAME_FAILED_DST_NOT_ACCESSIBLE 
FS_RENAME_FAILED_SRC_NOT_ACCESSIBLE 
FS_RENAME_FAILED_SRC_DOESNT_EXIST 
FS_RENAME_FAILED_DST_IS_DIR 
FS_RENAME_FAILED_SRC_IS_DIR_DST_IS_FILE 
FS_RENAME_FAILED_SRC_IS_PARENT_OF_DST 
FS_REMOVE_FAILED_PATH_NOT_WRITEABLE 
FS_REMOVE_FAILED_PATH_NOT_ACCESSIBLE 

◆ FileType

enum class FileType
strong
Enumerator
FILE_INVALID 
FILE_REGULAR 
FILE_DIRECTORY