Access denied when trying to create prefab

I was trying to create a prefab of my bullet gameObject when it said that there was an error moving a file:

Moving %homepath%/Documents/OneDrive/Unity Games/Tower Defense/Temp/UnityTempFile-7b30523a422d1ab4b87ed3ff11a40827 to %homepath/Documents/OneDrive/Unity Games/Tower Defense/Assets: Access is denied.

I checked the security settings for the assets folder, it’s fine.
I checked that I can create and remove files with Windows Explorer.
I restarted Unity and my computer.
I ran Unity Hub in Administrator mode.

I need prefabs to continue, please help!

Hi @solar138 ,

Have you tried closing Unity, deleting the Temp and Library folders, open Unity and trying again?

Maybe there is some corrupted file on such locations.

I hope this helps!