MCPcopy Create free account
hub / github.com/comaps/comaps / GetTrashDirectory

Function GetTrashDirectory

libs/map/bookmark_helpers.cpp:300–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300std::string GetTrashDirectory()
301{
302 std::string const trashDir = base::JoinPath(GetPlatform().SettingsDir(), std::string{kTrashDirectoryName});
303 if (!Platform::IsFileExistsByFullPath(trashDir) && !Platform::MkDirChecked(trashDir))
304 CHECK(false, ("Failed to create .Trash directory."));
305 return trashDir;
306}
307
308std::string RemoveInvalidSymbols(std::string const & name)
309{

Calls 1

JoinPathFunction · 0.85

Tested by

no test coverage detected