du


Description:

[ Version ( since = "1.0.54" ) ]
public int64 du (string path) throws Error

estimate file space usage

This command runs the "du -s" command to estimate file space usage for path.

path can be a file or a directory. If path is a directory then the estimate includes the contents of the directory and all subdirectories (recursively).

The result is the estimated size in *kilobytes* (ie. units of 1024 bytes).

Parameters:

this

A GuestfsSession object

Returns:

the returned value, or -1 on error