summaryrefslogtreecommitdiffstats
path: root/guestfish-actions.pod
diff options
context:
space:
mode:
authorRichard Jones <rjones@trick.home.annexia.org>2009-05-19 12:05:43 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-05-19 12:05:43 +0100
commit1fc41b39dac877ccec1284da8bb14baa4df368b8 (patch)
tree74d0693b6d97d796b75847ace4815109c17b3198 /guestfish-actions.pod
parentd1df2f342489bbbba086cae2bb95971c8e404cad (diff)
downloadlibguestfs-1fc41b39dac877ccec1284da8bb14baa4df368b8.tar.gz
libguestfs-1fc41b39dac877ccec1284da8bb14baa4df368b8.tar.xz
libguestfs-1fc41b39dac877ccec1284da8bb14baa4df368b8.zip
Generated code for 'find' command.
Diffstat (limited to 'guestfish-actions.pod')
-rw-r--r--guestfish-actions.pod29
1 files changed, 29 insertions, 0 deletions
diff --git a/guestfish-actions.pod b/guestfish-actions.pod
index 3945fb10..ee8e8247 100644
--- a/guestfish-actions.pod
+++ b/guestfish-actions.pod
@@ -514,6 +514,35 @@ The exact command which runs is C<file -bsL path>. Note in
particular that the filename is not prepended to the output
(the C<-b> option).
+=head2 find
+
+ find directory
+
+This command lists out all files and directories, recursively,
+starting at C<directory>. It is essentially equivalent to
+running the shell command C<find directory -print> but some
+post-processing happens on the output, described below.
+
+This returns a list of strings I<without any prefix>. Thus
+if the directory structure was:
+
+ /tmp/a
+ /tmp/b
+ /tmp/c/d
+
+then the returned list from C<find> C</tmp> would be
+4 elements:
+
+ a
+ b
+ c
+ c/d
+
+If C<directory> is not a directory, then this command returns
+an error.
+
+The returned list is sorted.
+
=head2 fsck
fsck fstype device