Skip to content

Commit

Permalink
Make list_paths() include dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Oct 26, 2022
1 parent 08a2a26 commit da14e11
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion dandi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,18 @@ def good_file(path: str) -> bool:


def list_paths(dirpath: Union[str, Path], dirs: bool = False) -> List[Path]:
return sorted(map(Path, find_files(r".*", [dirpath], dirs=dirs)))
return sorted(
map(
Path,
find_files(
r".*",
[dirpath],
dirs=dirs,
exclude_dotfiles=False,
exclude_dotdirs=False,
),
)
)


_cp_supports_reflink: Optional[bool] = None
Expand Down

0 comments on commit da14e11

Please sign in to comment.