Mercurial > trustbridge
diff common/portpath.h @ 984:faf58e9f518b
Add recursive mkdir and mkdir for windows
mkdir for windows is based on the create restricted directory
function that was used in nssstore_win
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 29 Aug 2014 17:12:35 +0200 |
parents | b3695a3399de |
children | f110a3f6e387 |
line wrap: on
line diff
--- a/common/portpath.h Fri Aug 29 17:11:35 2014 +0200 +++ b/common/portpath.h Fri Aug 29 17:12:35 2014 +0200 @@ -53,7 +53,7 @@ * @param[in] path the path to the file * @returns true if the file is an directory and false otherwise */ -bool port_isdir(char *path); +bool port_isdir(const char *path); /** * @brief create a directory @@ -65,4 +65,11 @@ */ bool port_mkdir(const char *path); +/** + * @brief create a directory and its parent directores + * @param[in] path the path to the directory + * @returns true if the directory was created + */ +bool port_mkdir_p(const char *path); + #endif