MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / IsDirectory

Method IsDirectory

test/common/gtest/gtest.cpp:8570–8573  ·  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

8568// it is intended to represent a directory. Returns false otherwise.
8569// This does NOT check that a directory (or file) actually exists.
8570bool FilePath::IsDirectory() const {
8571 return !pathname_.empty() &&
8572 IsPathSeparator(pathname_.c_str()[pathname_.length() - 1]);
8573}
8574
8575// Create directories so that path exists. Returns true if successful or if
8576// the directories already exist; returns false if unable to create directories

Callers 2

Calls 2

IsPathSeparatorFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected