As a user of OneDrive on MacOS I ran into an issue that OneDrive would hang at the processing files or scanning files stage. After some searching I found that this can be related to having paths with more than 255 characters in the name but how to find those? Well some small bash magic did the trick for me.
cd ~/OneDrive && find `pwd` -name '*' | grep '^.{255}'
This will list all the paths longer than 255 characters for the OneDrive directory located in home.
Right idea, but if your OneDrive directory is not in your home directory, you will need to correct this as the ~/OneDrive and the `pwd` won’t work. Instead try:
CD your-OneDrive-directory
find . -name ‘*’ | grep ‘^.{255}’
LikeLike
sorry that should of course be lower case cd
LikeLike
You are of course right! Didn’t think about the OneDrive not being in HOME.
LikeLike
Thanks, takes year to figure it out!
LikeLike