Renamed an icloud drive folder with the .tmp extension and files have disappeared
You try to restore previous files on iCloud.com:

First, in iCloud.com &gt; iCloud Drive, check if the files are present in the iCloud.com web view. If they are present here, download a copy first and foremost - and then you can decide how to proceed once you've secured a copy.
If that doesn't work, then again in iCloud.com &gt; iCloud Drive, click &quot;recently deleted&quot; in the bottom right hand corner.
If neither of these work, you can try reaching out to Apple - they may be able to restore an account-level backup if the files are especially important.