MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / isFile

Method isFile

KittyMemoryEx/KittyIOFile.hpp:270–274  ·  view source on GitHub ↗

* @brief Checks if the file is a regular file. * * @return true if the file is a regular file, false otherwise. */

Source from the content-addressed store, hash-verified

268 * @return true if the file is a regular file, false otherwise.
269 */
270 inline bool isFile()
271 {
272 auto s = info();
273 return _error == 0 && S_ISREG(s.st_mode);
274 }
275
276 /**
277 * @brief Reads the contents of the file into a string.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected