X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=python%2Fguestfs.py;h=3976610916b3085f2fdc0c60ee00fc891eec80ad;hb=1d07f1f88a08fc84d91db0931fcf34d1f9db36d3;hp=c9658cd1513a78243c31c4564276f542c8990588;hpb=4211c7a258debd236017a19c70965bc1b3658edb;p=libguestfs.git diff --git a/python/guestfs.py b/python/guestfs.py index c9658cd..3976610 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -1651,3 +1651,19 @@ class GuestFS: """ return libguestfsmod.sh_lines (self._o, command) + def glob_expand (self, pattern): + u"""This command searches for all the pathnames matching + "pattern" according to the wildcard expansion rules used + by the shell. + + If no paths match, then this returns an empty list + (note: not an error). + + It is just a wrapper around the C glob(3) function with + flags "GLOB_MARK|GLOB_BRACE". See that manual page for + more details. + + This function returns a list of strings. + """ + return libguestfsmod.glob_expand (self._o, pattern) +