Updater code, work in progress...

This commit is contained in:
Adam Ierymenko 2013-11-01 12:38:38 -04:00
parent e4044eeb70
commit ae138566a9
8 changed files with 337 additions and 6 deletions

View file

@ -118,8 +118,6 @@ public:
* List a directory's contents
*
* @param path Path to list
* @param files Set to fill with files
* @param directories Set to fill with directories
* @return Map of entries and whether or not they are also directories (empty on failure)
*/
static std::map<std::string,bool> listDirectory(const char *path);
@ -195,6 +193,12 @@ public:
return (getLastModified(path) != 0);
}
/**
* @param path Path to file
* @return File size or -1 if nonexistent or other failure
*/
static int64_t getFileSize(const char *path);
/**
* @param t64 Time in ms since epoch
* @return RFC1123 date string