我尝试使用
NSString *DocumentsDirectoryPath = //Code to fetch the Documents Directory Path;
NSError *error;
NSFileManager *manager = [NSFileManager defaultManager];
[manager removeItemAtPath:DocumentsDirectoryPath error:&error];
上面的代码删除了我的应用程序的整个 Documents 目录,但我只想删除Documents 目录的内容,而不是Documents 目录本身。
我该怎么办?