summaryrefslogtreecommitdiffstats
path: root/python/guestfs.py
diff options
context:
space:
mode:
authorRichard Jones <rjones@trick.home.annexia.org>2009-06-22 08:20:42 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-06-22 08:20:42 +0100
commitad8a256f54a6cb99f89bb444c8597a152a793dce (patch)
treef82b1ef05fe745c9cb2ec93275b9d0909f1a882e /python/guestfs.py
parent05c34c1c1479bb07b31cfbf912743a8cf014a636 (diff)
downloadlibguestfs-ad8a256f54a6cb99f89bb444c8597a152a793dce.tar.gz
libguestfs-ad8a256f54a6cb99f89bb444c8597a152a793dce.tar.xz
libguestfs-ad8a256f54a6cb99f89bb444c8597a152a793dce.zip
Generated code for 'glob-expand'.
Diffstat (limited to 'python/guestfs.py')
-rw-r--r--python/guestfs.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/python/guestfs.py b/python/guestfs.py
index c9658cd1..39766109 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)
+