Skip to content

Instantly share code, notes, and snippets.

@cicorias
Created April 18, 2015 22:03
Show Gist options
  • Save cicorias/382560890f638a302192 to your computer and use it in GitHub Desktop.
Save cicorias/382560890f638a302192 to your computer and use it in GitHub Desktop.
Run this from your OneDrive path - and it will report all files that exceed 250 characters - which on OneDrive if > 255 no sync - happens on Mac OS X too
Get-ChildItem -r * |? {$_.GetType().Name -match "File" } |? {$_.fullname.length -ge 250} | `
%{ Write-Host $_.fullname.length.ToString() "|" $_.fullname}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment