update docstring

This commit is contained in:
Sofie Van Landeghem 2023-01-05 08:56:26 +01:00 committed by GitHub
parent e253f4d947
commit 8ebb02e313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -586,7 +586,7 @@ def walk_directory(path: Path, suffix: Optional[str] = None) -> List[Path]:
"""Given a directory and a suffix, recursively find all files matching the suffix.
Directories or files with names beginning with a . are ignored, but hidden flags on
filesystems are not checked.
When provided with a suffix `None`, all files are returned without filtering."""
When provided with a suffix `None`, there is no suffix-based filtering."""
if not path.is_dir():
return [path]
paths = [path]