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

Function is_long_name

libcppcryptfs/filename/cryptfilename.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53bool is_long_name(const WCHAR *filename)
54{
55 wstring path = filename;
56
57 size_t last_slash = path.find_last_of('\\');
58 if (last_slash != wstring::npos) {
59 filename = &path[last_slash + 1];
60 }
61 return !wcsncmp(filename, longname_prefix, sizeof(longname_prefix) / sizeof(longname_prefix[0]) - 1);
62}
63
64bool is_long_name_file(const WCHAR *filename)
65{

Callers 8

find_filesFunction · 0.85
delete_directoryFunction · 0.85
delete_fileFunction · 0.85
decrypt_pathFunction · 0.85
unencrypt_pathFunction · 0.85
encrypt_stream_nameFunction · 0.85
decrypt_stream_nameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected