MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / IsDeleteAllowed

Function IsDeleteAllowed

Libraries/unrar/filefn.cpp:254–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252
253
254bool IsDeleteAllowed(uint FileAttr)
255{
256#ifdef _WIN_ALL
257 return (FileAttr & (FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_HIDDEN))==0;
258#else
259 return (FileAttr & (S_IRUSR|S_IWUSR))==(S_IRUSR|S_IWUSR);
260#endif
261}
262
263
264void PrepareToDelete(const wchar *Name)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected