Closed wonderwhy-er closed 11 months ago
There is an error here https://github.com/ykdojo/kaguya/blob/master/pages/api/deleteDirectory.js#L5
It tries to modify directoryPath right in parameters I guess ChatGPT wrote that :D
I just changed it from to
function deleteDirectoryRecursively(path.join(process.cwd(), 'FILES', directoryPath)) {
to
function deleteDirectoryRecursively(directoryPath) { directoryPath = path.join(process.cwd(), 'FILES', req.query.directoryPath);
This commit should've fixed it - let me know if it doesn't work.
ty for raising this issue!
There is an error here https://github.com/ykdojo/kaguya/blob/master/pages/api/deleteDirectory.js#L5
It tries to modify directoryPath right in parameters I guess ChatGPT wrote that :D
I just changed it from to
to