Add shutdownIfUnreadable file feature: shut down if shutdownIfUnreadable in home folder is in fact existent but unreadable (e.g. broken link). This enables nifty shutdown on .app trashing feature for OSX.

This commit is contained in:
Adam Ierymenko 2013-11-21 16:34:27 -05:00
parent 74af234305
commit b699bdefbd
3 changed files with 21 additions and 5 deletions

View file

@ -177,12 +177,10 @@ public:
/**
* @param path Path to check
* @param followLinks Follow links (on platforms with that concept)
* @return True if file or directory exists at path location
*/
static inline bool fileExists(const char *path)
{
return (getLastModified(path) != 0);
}
static bool fileExists(const char *path,bool followLinks = true);
/**
* @param path Path to file