From: Richard W.M. Jones Date: Tue, 21 Jul 2009 10:10:19 +0000 (+0100) Subject: Docs: Fully document the guestfs_readdir ftyp return field. X-Git-Tag: 1.0.63~13 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=f6eb8d44942c3d550c72933c406905f2cb86278d;hp=8ab8377ef64ec0e2483826388cf7d3c07ffa8ecc;ds=sidebyside Docs: Fully document the guestfs_readdir ftyp return field. --- diff --git a/src/generator.ml b/src/generator.ml index eb61fd1..7b33eb6 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 sorted, but returned in the same order as the underlying filesystem. +Also this call returns basic file type information about each +file. The C 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 returned a C field with an +unexpected value + +=back + This function is primarily intended for use by programs. To get a simple list of names, use C. To get a printable directory for human consumption, use C.");