Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/covscript/covscript
/ can_read
Function
can_read
sources/system/unix/common.cpp:191–194 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
189
}
190
191
bool can_read(const std::string &path)
192
{
193
return access(path.c_str(), R_OK) == 0;
194
}
195
196
bool can_write(const std::string &path)
197
{
Callers
2
covscript_main
Function · 0.50
covscript_main
Function · 0.50
Calls
1
access
Function · 0.85
Tested by
no test coverage detected