10/11/2022
If you find yourself doing a SharePoint migration and have files with a space in front giving you a hard time, this is a useful little bit of code you can run from a command prompt:
for /R %A IN (" *") do /F "tokens=*" %B IN ("%~nxA") do "%A" "%B"
You must be in the directory you want to apply this to.
And as to why there might be a space in front of a file - it puts it on the top of an Explorer window!