]> 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 17:07:48 +0000 (17:07 +0000)
commitb30c98b5f51b52ef6f70dbf841390ea9944035da
treeba0760072f8f5e5d3975f9321adae08007b0d5ca
parenta02e2341a983dafe2a006156194a1e31f0de07a0
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