netconf service work

This commit is contained in:
Adam Ierymenko 2013-08-01 17:32:37 -04:00
commit 741642ba53
5 changed files with 110 additions and 1 deletions

View file

@ -119,6 +119,15 @@ public:
*/
static uint64_t getLastModified(const char *path);
/**
* @param path Path to check
* @return True if file or directory exists at path location
*/
static inline bool fileExists(const char *path)
{
return (getLastModified(path) != 0);
}
/**
* @param t64 Time in ms since epoch
* @return RFC1123 date string