Mercurial > hgrepos > Python > apps > py-cutils
changeset 106:5fe6f63f0be7
Implement "--recurse" and "--follow-symlinks" in "gen_opts()" also
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 30 May 2022 09:15:18 +0200 |
| parents | b0631f320efd |
| children | 0edbb9a261f7 |
| files | cutils/shasum.py |
| diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/cutils/shasum.py Sun May 29 01:06:25 2022 +0200 +++ b/cutils/shasum.py Mon May 30 09:15:18 2022 +0200 @@ -136,7 +136,8 @@ def gen_opts(files=[], algorithm="SHA1", bsd=False, text_mode=False, checklist=False, check=False, dest=None, base64=False, - allow_distinfo=False, mmap=None): + allow_distinfo=False, mmap=None, recurse=False, + follow_symlinks=False): if text_mode: raise ValueError("text mode not supported") if checklist and check: @@ -151,7 +152,9 @@ dest=dest, base64=base64, allow_distinfo=allow_distinfo, - mmap=mmap) + mmap=mmap, + recurse=recurse, + follow_symlinks=follow_symlinks) return opts
