mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
process-text-files.py: Make it usable again
This --maxdepth / --name patch introduced broke run(). This commit fixes that. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
26d322023a
commit
350c2147dd
1 changed files with 1 additions and 1 deletions
|
|
@ -381,7 +381,7 @@ class Cmd(jwutils.Cmd):
|
|||
if regex is not None:
|
||||
for entry in _scantree(args.root, args.maxdepth):
|
||||
if re.search(regex, entry.name):
|
||||
root = os.dirname(entry.path)
|
||||
root = os.path.dirname(entry.path)
|
||||
if not root:
|
||||
root = '.'
|
||||
files.append((root, entry.path))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue