MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / IsReadOnly

Method IsReadOnly

Source/Engine/Platform/Android/AndroidFileSystem.cpp:274–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274bool AndroidFileSystem::IsReadOnly(const StringView& path)
275{
276 const StringAsANSI<> pathANSI(*path, path.Length());
277 if (access(pathANSI.Get(), W_OK) == -1)
278 {
279 return errno == EACCES;
280 }
281 if (IsAsset(path, pathANSI.Get()))
282 {
283 return true;
284 }
285 return false;
286}
287
288bool AndroidFileSystem::SetReadOnly(const StringView& path, bool isReadOnly)
289{

Callers

nothing calls this directly

Calls 3

IsAssetFunction · 0.85
LengthMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected