Open yakkle opened 1 year ago
recursive globbing not work like pathlib. Is this intented?
if cwd is /home/yakkle/tmp has subdirectory foo/bar, and has file sample.zip in foo/bar :
/home/yakkle/tmp
foo/bar
sample.zip
>>> local.cwd // "**/*.zip" [] >>>
will show empty list.
if base path is /home/yakkle/tmp/foo:
/home/yakkle/tmp/foo
>>> local.cwd["foo"] // "**/*.zip" [<LocalPath /home/yakkle/tmp/foo/bar/sample.zip>] >>>
will show found result. but it only 1 depth search. not recursive.
python docs says :
The “**” pattern means “this directory and all subdirectories, recursively”. In other words, it enables recursive globbing:
**
https://docs.python.org/3.9/library/pathlib.html?highlight=mkdir#pathlib.Path.glob
recursive globbing not work like pathlib. Is this intented?
if cwd is
/home/yakkle/tmp
has subdirectoryfoo/bar
, and has filesample.zip
infoo/bar
:will show empty list.
if base path is
/home/yakkle/tmp/foo
:will show found result. but it only 1 depth search. not recursive.
python docs says :
https://docs.python.org/3.9/library/pathlib.html?highlight=mkdir#pathlib.Path.glob