glob icon indicating copy to clipboard operation
glob copied to clipboard

Support starting from a specified directory, not just current working directory

Open shepmaster opened this issue 9 years ago • 2 comments

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").

shepmaster avatar Jul 15 '16 20:07 shepmaster

FYI, this is one of the features of "globwalk" that isn't in "glob": https://github.com/gilnaa/globwalk#why-not-glob

sffc avatar Feb 27 '21 00:02 sffc

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?

Gilnaa avatar Dec 21 '23 07:12 Gilnaa