[libvirt] [PATCH v3 01/16] Introduce a virFileDeleteTree method

Eric Blake eblake at redhat.com
Wed Apr 10 17:25:10 UTC 2013


On 04/10/2013 04:08 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> Introduce a method virFileDeleteTree for recursively deleting
> an entire directory tree
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> +
> +/**
> + * virFileDeleteTree:
> + *
> + * Recursively deletes all files / directories
> + * starting from the directory @dir. Does not
> + * follow symlinks

I would add a comment mentioning that this function is not efficient to
use on arbitrarily large or deep hierarchies.  But I agree with Michal's
ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130410/74dbc469/attachment-0001.sig>


More information about the libvir-list mailing list