[Libguestfs] [PATCH 2/2] New tool: virt-ls

Richard W.M. Jones rjones at redhat.com
Tue Oct 20 10:56:36 UTC 2009


On Tue, Oct 20, 2009 at 11:48:11AM +0100, Matthew Booth wrote:
> On 20/10/09 10:39, Richard W.M. Jones wrote:
>> +my @r;
>> +unless ($mode) {
>> +    @r = $g->ls ($directory);
>> +    print "$_\n" foreach @r;
>> +} elsif ($mode eq "l") {
>> +    print ($g->ll ($directory));
>> +} else { # $mode eq "R"
>> +    @r = $g->find ($directory);
>> +    print "$_\n" foreach @r;
>> +}
>
> Do you want to use the new find0 here?
>
> Otherwise, ACK.

Thanks -- find0 is added by a later patch.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top




More information about the Libguestfs mailing list