common_util
Loading...
Searching...
No Matches
filetype.h
Go to the documentation of this file.
1
19#include <vector>
20#include <string>
21
22#pragma once
23
24namespace cutl
25{
26
31 constexpr int MAX_PATH_LEN = 1024;
32
38 {
40 unknown = 0x00,
42 directory = 0x01,
44 file = 0x02,
46 symlink = 0x04,
52 pipefifo = 0x20,
54 socket = 0x40,
56 all = 0xFF,
57 };
58
64 {
66 filetype type = {filetype::unknown};
68 std::string filepath;
69 };
70
75 using filevec = std::vector<file_entity>;
76
77} // namespace cutl
constexpr int MAX_PATH_LEN
Constants value: max path length.
Definition filetype.h:31
std::vector< file_entity > filevec
The vector of file_entity.
Definition filetype.h:75
filetype
The type of file.
Definition filetype.h:38
@ all
Definition filetype.h:56
@ unknown
Definition filetype.h:40
@ socket
Definition filetype.h:54
@ char_special
Definition filetype.h:48
@ directory
Definition filetype.h:42
@ block_special
Definition filetype.h:50
@ symlink
Definition filetype.h:46
@ pipefifo
Definition filetype.h:52
@ file
Definition filetype.h:44
file entity struct. include file type and file path.
Definition filetype.h:64
filetype type
Definition filetype.h:66
std::string filepath
Definition filetype.h:68