MCPcopy Create free account
hub / github.com/MhLiao/TextBoxes_plusplus / RemoveDirectoryName

Method RemoveDirectoryName

src/gtest/gtest-all.cpp:7575–7578  ·  view source on GitHub ↗

Returns a copy of the FilePath with the directory part removed. Example: FilePath("path/to/file").RemoveDirectoryName() returns FilePath("file"). If there is no directory part ("just_a_file"), it returns the FilePath unmodified. If there is no file part ("just_a_dir/") it returns an empty FilePath (""). On Windows platform, '\' is the path separator, otherwise it is '/'.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

GetCurrentExecutableNameFunction · 0.80

Calls 2

FilePathFunction · 0.85
StringFunction · 0.70

Tested by

no test coverage detected