summaryrefslogtreecommitdiffstats
path: root/src/generator.ml
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2009-07-21 11:10:19 +0100
committerRichard W.M. Jones <rjones@redhat.com>2009-07-21 11:10:53 +0100
commitf6eb8d44942c3d550c72933c406905f2cb86278d (patch)
treeaed89e243d44a5da2a011eb42522684a9afce124 /src/generator.ml
parent8ab8377ef64ec0e2483826388cf7d3c07ffa8ecc (diff)
downloadlibguestfs-f6eb8d44942c3d550c72933c406905f2cb86278d.tar.gz
libguestfs-f6eb8d44942c3d550c72933c406905f2cb86278d.tar.xz
libguestfs-f6eb8d44942c3d550c72933c406905f2cb86278d.zip
Docs: Fully document the guestfs_readdir ftyp return field.
Diffstat (limited to 'src/generator.ml')
-rwxr-xr-xsrc/generator.ml44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/generator.ml b/src/generator.ml
index eb61fd1c..7b33eb62 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -2842,6 +2842,50 @@ All entries in the directory are returned, including C<.> and
C<..>. The entries are I<not> sorted, but returned in the same
order as the underlying filesystem.
+Also this call returns basic file type information about each
+file. The C<ftyp> field will contain one of the following characters:
+
+=over 4
+
+=item 'b'
+
+Block special
+
+=item 'c'
+
+Char special
+
+=item 'd'
+
+Directory
+
+=item 'f'
+
+FIFO (named pipe)
+
+=item 'l'
+
+Symbolic link
+
+=item 'r'
+
+Regular file
+
+=item 's'
+
+Socket
+
+=item 'u'
+
+Unknown file type
+
+=item '?'
+
+The L<readdir(3)> returned a C<d_type> field with an
+unexpected value
+
+=back
+
This function is primarily intended for use by programs. To
get a simple list of names, use C<guestfs_ls>. To get a printable
directory for human consumption, use C<guestfs_ll>.");