chore: fix fs api

This commit is contained in:
Louis 2025-03-26 13:49:35 +07:00
parent 048872a3c8
commit ed8bb06c27
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -41,7 +41,7 @@ const mkdir = (...args: any[]) => globalThis.core.api?.mkdir({ args })
* Removes a directory at the specified path.
* @returns {Promise<any>} A Promise that resolves when the directory is removed successfully.
*/
const rm = (...args: any[]) => globalThis.core.api?.rm(...args, { recursive: true, force: true })
const rm = (...args: any[]) => globalThis.core.api?.rm({ args })
/**
* Deletes a file from the local file system.