MCPcopy Create free account
hub / github.com/devkitPro/libctru / FSUSER_DeleteDirectoryRecursively

Function FSUSER_DeleteDirectoryRecursively

libctru/source/services/fs.c:275–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275Result FSUSER_DeleteDirectoryRecursively(FS_Archive archive, FS_Path path)
276{
277 u32 *cmdbuf = getThreadCommandBuffer();
278
279 cmdbuf[0] = IPC_MakeHeader(0x807,5,2); // 0x8070142
280 cmdbuf[1] = 0;
281 cmdbuf[2] = (u32) archive;
282 cmdbuf[3] = (u32) (archive >> 32);
283 cmdbuf[4] = path.type;
284 cmdbuf[5] = path.size;
285 cmdbuf[6] = IPC_Desc_StaticBuffer(path.size, 0);
286 cmdbuf[7] = (u32) path.data;
287
288 Result ret = 0;
289 if(R_FAILED(ret = svcSendSyncRequest(fsSessionForArchive(archive)))) return ret;
290
291 return cmdbuf[1];
292}
293
294Result FSUSER_CreateFile(FS_Archive archive, FS_Path path, u32 attributes, u64 fileSize)
295{

Callers

nothing calls this directly

Calls 4

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85
IPC_Desc_StaticBufferFunction · 0.85
fsSessionForArchiveFunction · 0.85

Tested by

no test coverage detected