Mercurial > trustbridge
diff 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 |
line wrap: on
line diff
--- a/common/portpath.h Tue Mar 25 16:31:52 2014 +0100 +++ b/common/portpath.h Tue Mar 25 16:45:32 2014 +0100 @@ -39,4 +39,13 @@ */ bool port_fileexits(char *path); +/** + * @brief test if a file is a directory + * @details uses a platform specific stat call to test if the given + * file is an directory. + * @param[in] path the path to the file + * @returns true if the file is an directory and false otherwise + */ +bool port_isdir(char *path); + #endif