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

Method canWrite

KittyMemoryEx/KittyIOFile.hpp:213–216  ·  view source on GitHub ↗

* @brief Checks if the file can be written. * * @return true if the file can be written, false otherwise. */

Source from the content-addressed store, hash-verified

211
212 /**
213 * @brief Checks if the file can be written.
214 *
215 * @return true if the file can be written, false otherwise.
216 */
217 inline bool canWrite() const
218 {
219 return access(_filePath.c_str(), W_OK) != -1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected