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

Function FSUSER_DeleteDirectory

libctru/source/services/fs.c:256–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256Result FSUSER_DeleteDirectory(FS_Archive archive, FS_Path path)
257{
258 u32 *cmdbuf = getThreadCommandBuffer();
259
260 cmdbuf[0] = IPC_MakeHeader(0x806,5,2); // 0x8060142
261 cmdbuf[1] = 0;
262 cmdbuf[2] = (u32) archive;
263 cmdbuf[3] = (u32) (archive >> 32);
264 cmdbuf[4] = path.type;
265 cmdbuf[5] = path.size;
266 cmdbuf[6] = IPC_Desc_StaticBuffer(path.size, 0);
267 cmdbuf[7] = (u32) path.data;
268
269 Result ret = 0;
270 if(R_FAILED(ret = svcSendSyncRequest(fsSessionForArchive(archive)))) return ret;
271
272 return cmdbuf[1];
273}
274
275Result FSUSER_DeleteDirectoryRecursively(FS_Archive archive, FS_Path path)
276{

Callers 2

archive_renameFunction · 0.85
archive_rmdirFunction · 0.85

Calls 4

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

Tested by

no test coverage detected