With a fresh install on 13.2.3 iPhone 11 Pro, I get a permissions error reading the default iCloud path in the app. I can create files but not read them.

With the os.rmdir suggestion, I was able to delete the folder (Verified in Files app), but os.mkdir failed with “ FileExistsError: [Errno 17] File exists:”