MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / GetDirectory

Method GetDirectory

common/FileSystem.cpp:625–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623}
624
625std::string_view Path::GetDirectory(const std::string_view path)
626{
627 const std::string::size_type pos = GetLastSeperatorPosition(path, false);
628 if (pos == std::string_view::npos)
629 return {};
630
631 return path.substr(0, pos);
632}
633
634std::string_view Path::GetFileName(const std::string_view path)
635{

Callers

nothing calls this directly

Calls 2

GetLastSeperatorPositionFunction · 0.85
substrMethod · 0.80

Tested by

no test coverage detected