The issue is that if we have a link to a broken folder, `isFolder` returns False, but you can't delete the file using `deleteFile`