Skip to content

Instantly share code, notes, and snippets.

@alsotang
Last active January 30, 2024 02:51
Show Gist options
  • Save alsotang/093198f46a8658b3b68a93d633aac95d to your computer and use it in GitHub Desktop.
Save alsotang/093198f46a8658b3b68a93d633aac95d to your computer and use it in GitHub Desktop.
Release all local copy of iCloud drive. Run this script in a certain iCloud drive dir.
find . -type f ! -name '*.icloud' ! -name '.DS_Store' -exec brctl evict {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment