On 04/10/2013 04:08 AM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" <berrange@xxxxxxxxxx> > > Introduce a method virFileDeleteTree for recursively deleting > an entire directory tree > > Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx> > --- > + > +/** > + * 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
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list