Question was the following:
Assuming you have these functions:
Delete(path) -> bool: deletes the file or empty directoryIsDirectory(path) -> bool: checks whether filepath is directory or notGetAllFiles(path) -> List<string>: gets the absolute paths of all files in a directory, including other directoriesImplement rm -rf.
define DeleteAllFilesAndDir(path):
How do you code it in a way that prevents out of memory (OOM) errors?