1 #ifndef LIBFILEZILLA_FSRESULT_HEADER
2 #define LIBFILEZILLA_FSRESULT_HEADER
4 #include "private/visibility.hpp"
48 typedef uint32_t raw_t;
53 explicit operator bool()
const {
return error_ == 0; }
64 typedef uint32_t raw_t;
85 explicit rwresult(error e, raw_t raw)
91 explicit rwresult(
size_t value)
95 explicit operator bool()
const {
return error_ == 0; }
Small class to return filesystem errors.
Definition: fsresult.hpp:22
error
Definition: fsresult.hpp:24
@ noperm
Permission denied.
Definition: fsresult.hpp:32
@ nofile
Requested file does not exist or is not a file.
Definition: fsresult.hpp:35
@ invalid
Invalid arguments, syntax error.
Definition: fsresult.hpp:29
@ nospace
Out of disk space.
Definition: fsresult.hpp:41
@ nodir
Requested dir does not exist or is not a dir.
Definition: fsresult.hpp:38
Definition: fsresult.hpp:61
error
Definition: fsresult.hpp:69
@ wouldblock
The operation would have blocked, but the file descriptor is marked non-blocking.
Definition: fsresult.hpp:79
@ invalid
Invalid arguments, syntax error.
Definition: fsresult.hpp:73
@ nospace
Out of disk space.
Definition: fsresult.hpp:76
@ error
Error messages aimed at the user.
Definition: logger.hpp:21
The namespace used by libfilezilla.
Definition: apply.hpp:17