Skip to content

Instantly share code, notes, and snippets.

@keller-mark
Last active June 1, 2023 21:46
Show Gist options
  • Select an option

  • Save keller-mark/f8973fdf575db0d1786434ac91dc0a7f to your computer and use it in GitHub Desktop.

Select an option

Save keller-mark/f8973fdf575db0d1786434ac91dc0a7f to your computer and use it in GitHub Desktop.
Delete globus DS_Store files
# Endpoint UUID of "HuBMAP Data" is first part in quotes before colon
# Publication UUID is directory name
globus ls "24c2ee95-146d-4513-a1b3-ac0bfdb7856f:/consortium/IEC Testing Group/2ced91fd6d543e79af90313e52ada57d/" --filter "=.DS_Store" --recursive --all > ds_store.txt
cat ds_store.txt | grep .DS_Store > filtered_ds_store.txt
globus delete "24c2ee95-146d-4513-a1b3-ac0bfdb7856f:/consortium/IEC Testing Group/2ced91fd6d543e79af90313e52ada57d/" --batch ./filtered_ds_store.txt --dry-run
globus delete "24c2ee95-146d-4513-a1b3-ac0bfdb7856f:/consortium/IEC Testing Group/2ced91fd6d543e79af90313e52ada57d/" --batch ./filtered_ds_store.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment