MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / VirtualAttributesNameFile

Function VirtualAttributesNameFile

libcppcryptfs/util/fileutil.cpp:57–65  ·  view source on GitHub ↗

derive attributes for virtual reverse-mode longname name file from the attributes of its related file or directory

Source from the content-addressed store, hash-verified

55// derive attributes for virtual reverse-mode longname name file
56// from the attributes of its related file or directory
57static DWORD
58VirtualAttributesNameFile(DWORD attr)
59{
60 bool bForDir = (attr & FILE_ATTRIBUTE_DIRECTORY) != 0;
61 attr &= ~FILE_ATTRIBUTE_DIRECTORY;
62 if (attr == 0)
63 attr = bForDir ? FILE_ATTRIBUTE_ARCHIVE : FILE_ATTRIBUTE_NORMAL;
64 return attr;
65}
66
67#endif // _WIN32
68

Callers 2

find_filesFunction · 0.85
get_file_informationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected