Skip to content

Instantly share code, notes, and snippets.

@viperey
Last active November 5, 2020 20:47
Show Gist options
  • Save viperey/361fd64edc7da5eb40eff7db03ba477c to your computer and use it in GitHub Desktop.
Save viperey/361fd64edc7da5eb40eff7db03ba477c to your computer and use it in GitHub Desktop.
Recursively add all subdirectories of a root path to an aMule instance
# Set path to the root folder you want to recursively include in your aMule instance
# Untested, exposed for documentation purposes
AMULE_SHAREDIR_PATH=~/.aMule/shareddir.dat
TERMS_TO_EXCLUDE="osync|\.git"
find ${PATH} -type d | grep -v '${TERMS_TO_EXCLUDE}' >> ${AMULE_SHAREDIR_PATH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment