Generated files for file(1) command.
[libguestfs.git] / guestfish-actions.pod
index 50ecfec..606c5b9 100644 (file)
@@ -236,6 +236,18 @@ This returns C<true> if and only if there is a file, directory
 
 See also C<is_file>, C<is_dir>, C<stat>.
 
+=head2 file
+
+ file path
+
+This call uses the standard L<file(1)> command to determine
+the type or contents of the file.  This also works on devices,
+for example to find out whether a partition contains a filesystem.
+
+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 get-autosync
 
  get-autosync