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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected