Skip to content

Commit

Permalink
Update Find.py
Browse files Browse the repository at this point in the history
Modify description to better reflect behavior
  • Loading branch information
ghecko authored Oct 15, 2024
1 parent 445e7b3 commit 53e1ca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smbclientng/modules/Find.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def parseArgs(self, arguments):
parser.add_argument("-type", type=str, default=None, help="File type (e.g., f for regular file, d for directory).")
parser.add_argument("-size", type=str, help="File uses n units of space.")
parser.add_argument('--exclude-dir', action='append', default=[], metavar='DIRNAME[:DEPTH[:CASE]]',
help=("Exclude directories matching DIRNAME at specified depth and case sensitivity. "
help=("Exclude directories matching DIRNAME until specified depth and case sensitivity. "
"DEPTH specifies the recursion depth (-1 for all depths, default is 0). "
"CASE can be 'i' for case-insensitive or 's' for case-sensitive (default). "
"Format: DIRNAME[:DEPTH[:CASE]]"))
Expand Down Expand Up @@ -84,7 +84,7 @@ def parse_exclude_dirs(self, exclude_dirs):
Each exclusion rule is a dictionary with keys:
- 'dirname': The directory name to exclude.
- 'depth': The depth at which to exclude the directory (-1 for all depths).
- 'depth': The depth until which to exclude the directory (-1 for all depths).
- 'case_sensitive': Boolean indicating if the match is case-sensitive.
"""
exclusion_rules = []
Expand Down

0 comments on commit 53e1ca7

Please sign in to comment.