]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add virFileMakeParentPath helper function
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 30 Jan 2014 17:06:39 +0000 (17:06 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 18 Feb 2014 15:53:08 +0000 (15:53 +0000)
commit3229a9ca37078f62bd1a410830d13bfc3f0c2122
tree53e397d3c75a8f33333c926785c63c9cafd4c981
parentea2f904a6d1f17bf6b212323390644ab0ab8c36d
Add virFileMakeParentPath helper function

Add a helper function which takes a file path and ensures
that all directory components leading up to the file exist.
IOW, it strips the filename part of the path and passes
the result to virFileMakePath.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit c321bfc5c37c603af349dacf531bb03c91b0755e)
src/libvirt_private.syms
src/util/virfile.c
src/util/virfile.h