You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
glob("test/*"), [x.path for x in local.glob("test/*")]
(['test\pilot'], ['/test/'])
##################################### [x.path for x in local.glob("test/**")]
produces same results as glob("test/**", recursive=True) but takes over 6 seconds whereas native glob takes 3ms!
The text was updated successfully, but these errors were encountered:
I dunno what the intended PyFilesystem behaviour is, but the documentation is unfortunately a bit ambiguous. 😕 It says both "If the glob pattern ends in a /, it will only match directory paths, otherwise it will match files and directories." and also "* Matches all files in the current directory."
It's not just on Windows. On Linux too * should match files and directories, but PyFilesystem's glob yields only files... is there any kind of system where people would expect * to match files only?
Is glob intended to produce same results as glob.glob? They seem to be different at least on windows local file system.
(['test'], [])
#####################################
glob("test/*"), [x.path for x in local.glob("test/*")]
(['test\pilot'], ['/test/'])
#####################################
[x.path for x in local.glob("test/**")]
produces same results as glob("test/**", recursive=True) but takes over 6 seconds whereas native glob takes 3ms!
The text was updated successfully, but these errors were encountered: