summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-08-17 13:57:37 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-08-17 16:08:13 +0100
commit1b4d8e2cca7819b4c6e14bb052f40a9fc40205d3 (patch)
tree156912d33df89aa422c4639bb374c3b7d41d9343 /generator
parent8ee51907685d6db92031e84d249ea3bb4cdc2d67 (diff)
downloadlibguestfs-1b4d8e2cca7819b4c6e14bb052f40a9fc40205d3.tar.gz
libguestfs-1b4d8e2cca7819b4c6e14bb052f40a9fc40205d3.tar.xz
libguestfs-1b4d8e2cca7819b4c6e14bb052f40a9fc40205d3.zip
New API: ls0 - List files, separated by \0 characters.
This API is not especially useful on its own. It will be used to reimplement guestfs_ls to work without protocol limits.
Diffstat (limited to 'generator')
-rw-r--r--generator/generator_actions.ml14
1 files changed, 14 insertions, 0 deletions
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index 9c45a663..be2db82a 100644
--- a/generator/generator_actions.ml
+++ b/generator/generator_actions.ml
@@ -9425,6 +9425,20 @@ so the target must be set up not to require one.
The optional arguments are the same as those of C<guestfs_rsync>." };
+ { defaults with
+ name = "ls0";
+ style = RErr, [Pathname "dir"; FileOut "filenames"], [];
+ proc_nr = Some 347;
+ shortdesc = "get list of files in a directory";
+ longdesc = "\
+This specialized command is used to get a listing of
+the filenames in the directory C<dir>. The list of filenames
+is written to the local file C<filenames> (on the host).
+
+In the output file, the filenames are separated by C<\\0> characters.
+
+C<.> and C<..> are not returned. The filenames are not sorted." };
+
]
(* Non-API meta-commands available only in guestfish.