Mercurial > trustbridge
comparison common/portpath.h @ 176:70d627e9e801
New portability function to test if a file is an directory.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Tue, 25 Mar 2014 16:45:32 +0100 |
parents | f100861dad8f |
children | 17e1c8f37d72 |
comparison
equal
deleted
inserted
replaced
175:6fa0e12ae1d2 | 176:70d627e9e801 |
---|---|
37 * @param[in] path the path to the file | 37 * @param[in] path the path to the file |
38 * @returns true if the file exists and false otherwise | 38 * @returns true if the file exists and false otherwise |
39 */ | 39 */ |
40 bool port_fileexits(char *path); | 40 bool port_fileexits(char *path); |
41 | 41 |
42 /** | |
43 * @brief test if a file is a directory | |
44 * @details uses a platform specific stat call to test if the given | |
45 * file is an directory. | |
46 * @param[in] path the path to the file | |
47 * @returns true if the file is an directory and false otherwise | |
48 */ | |
49 bool port_isdir(char *path); | |
50 | |
42 #endif | 51 #endif |