MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / IsDirectory

Method IsDirectory

rtpose_wrapper/src/gtest/gtest-all.cpp:7720–7723  ·  view source on GitHub ↗

Returns true if FilePath ends with a path separator, which indicates that it is intended to represent a directory. Returns false otherwise. This does NOT check that a directory (or file) actually exists.

Source from the content-addressed store, hash-verified

7718// it is intended to represent a directory. Returns false otherwise.
7719// This does NOT check that a directory (or file) actually exists.
7720bool FilePath::IsDirectory() const {
7721 return !pathname_.empty() &&
7722 IsPathSeparator(pathname_.c_str()[pathname_.length() - 1]);
7723}
7724
7725// Create directories so that path exists. Returns true if successful or if
7726// the directories already exist; returns false if unable to create directories

Callers 2

Calls 1

IsPathSeparatorFunction · 0.85

Tested by

no test coverage detected