glob
glob copied to clipboard
Support starting from a specified directory, not just current working directory
From the documentation:
which may be absolute or relative to the current working directory.
I'd like to be able to say something like glob_from(path_like_thing, "glob_pattern").
FYI, this is one of the features of "globwalk" that isn't in "glob": https://github.com/gilnaa/globwalk#why-not-glob
Is this issue still relevant for glob?
This issue seems to suggest to you don't need a specialized API for this, instead it's possible to just modify the pattern to include the full path.
Is it significant for the starting directory and the pattern to be separate?