summaryrefslogtreecommitdiff
path: root/node/Utils.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-11-21 16:34:27 -0500
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-11-21 16:34:27 -0500
commitb699bdefbd008a5dbfab4308e9b969b2aaa88ce1 (patch)
treeffcdbca9f667f72fd195d3087d7886db39505ad2 /node/Utils.hpp
parent74af234305a3758589112212b4c270756fa73243 (diff)
downloadinfinitytier-b699bdefbd008a5dbfab4308e9b969b2aaa88ce1.tar.gz
infinitytier-b699bdefbd008a5dbfab4308e9b969b2aaa88ce1.zip
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.
Diffstat (limited to 'node/Utils.hpp')
-rw-r--r--node/Utils.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/node/Utils.hpp b/node/Utils.hpp
index 4e060748..2fea8b9b 100644
--- a/node/Utils.hpp
+++ b/node/Utils.hpp
@@ -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