MCPcopy Create free account
hub / github.com/Evolving-AI-Lab/fooling / RemoveFileName

Method RemoveFileName

caffe/src/gtest/gtest-all.cpp:7587–7596  ·  view source on GitHub ↗

RemoveFileName returns the directory path with the filename removed. Example: FilePath("path/to/file").RemoveFileName() returns "path/to/". If the FilePath is "a_file" or "/a_file", RemoveFileName returns FilePath("./") or, on Windows, FilePath(".\\"). If the filepath does not have a file, like "just/a/dir/", it returns the FilePath unmodified. On Windows platform, '\' is the path separator, other

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

OnTestIterationEndMethod · 0.80

Calls 3

c_strFunction · 0.85
FilePathFunction · 0.85
StringFunction · 0.70

Tested by

no test coverage detected