/
cppfs.h
55 lines (44 loc) · 1.01 KB
/
cppfs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#pragma once
#include <cppfs/cppfs_api.h>
namespace cppfs
{
/**
* @brief
* File permission flags
*/
enum FilePermissions
{
UserRead = 0x400,
UserWrite = 0x200,
UserExec = 0x100,
GroupRead = 0x040,
GroupWrite = 0x020,
GroupExec = 0x010,
OtherRead = 0x004,
OtherWrite = 0x002,
OtherExec = 0x001,
SetUid = 04000,
SetGid = 02000,
Sticky = 01000
};
/**
* @brief
* Type of event on the file system
*/
enum FileEvent
{
FileCreated = 0x01, ///< A file or directory has been created
FileRemoved = 0x02, ///< A file or directory has been removed
FileModified = 0x04, ///< A file or directory has been modified
FileAttrChanged = 0x08 ///< Attributes on a file or directory have been modified
};
/**
* @brief
* Recursive mode for operation that can run recursively or non-recursively
*/
enum RecursiveMode
{
NonRecursive = 0, ///< Run recursively
Recursive ///< Run non-recursively
};
} // namespace cppfs