This example shows encrypting directory test-dir with â€“recursive flag. So all directories under test-dir will be encrypted too. How Secret works is that it goes through all the files in the directory and encrypting them one by one. Without â€“delete flag Secret will leave original files intact, useful for testing, and for cases where you do want to keep the original files too.
Decrypting a directory would work the same way, but using decrypt instead of the encrypt subcommand.