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

Function rt_is_name_file

libcppcryptfs/filename/cryptfilename.cpp:931–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929}
930
931bool
932rt_is_name_file(CryptContext *con, LPCWSTR FileName)
933{
934 CryptConfig *cfg = con->GetConfig();
935
936 if (!cfg->m_reverse || cfg->m_PlaintextNames || !cfg->m_LongNames)
937 return false;
938
939 const WCHAR *last_slash = wcsrchr(FileName, '\\');
940
941 const WCHAR *str = last_slash ? last_slash + 1 : FileName;
942
943 return is_long_name_file(str);
944}
945
946bool
947rt_is_virtual_file(CryptContext *con, LPCWSTR FileName)

Callers 5

read_virtual_fileFunction · 0.85
get_file_informationFunction · 0.85
rt_is_virtual_fileFunction · 0.85

Calls 2

is_long_name_fileFunction · 0.85
GetConfigMethod · 0.80

Tested by

no test coverage detected