comparison 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
comparison
equal deleted inserted replaced
983:427e2e18b8c8 984:faf58e9f518b
51 * @details uses a platform specific stat call to test if the given 51 * @details uses a platform specific stat call to test if the given
52 * file is an directory. 52 * file is an directory.
53 * @param[in] path the path to the file 53 * @param[in] path the path to the file
54 * @returns true if the file is an directory and false otherwise 54 * @returns true if the file is an directory and false otherwise
55 */ 55 */
56 bool port_isdir(char *path); 56 bool port_isdir(const char *path);
57 57
58 /** 58 /**
59 * @brief create a directory 59 * @brief create a directory
60 * @details uses a platform specific mkdir / access rights setup 60 * @details uses a platform specific mkdir / access rights setup
61 * to create a directory that is world readable and 61 * to create a directory that is world readable and
63 * @param[in] path the path to the directory 63 * @param[in] path the path to the directory
64 * @returns true if the directory was created 64 * @returns true if the directory was created
65 */ 65 */
66 bool port_mkdir(const char *path); 66 bool port_mkdir(const char *path);
67 67
68 /**
69 * @brief create a directory and its parent directores
70 * @param[in] path the path to the directory
71 * @returns true if the directory was created
72 */
73 bool port_mkdir_p(const char *path);
74
68 #endif 75 #endif

http://wald.intevation.org/projects/trustbridge/