Re-added love.filesystem.exists.

If PhysFS 2.1-alpha is used and a directory is symlinked, isDirectory will return false (whereas it will return true when PhysFS 2.0 is used.) exists will return true in all cases.
This commit is contained in:
Alex Szpakowski
2015-12-11 23:17:49 -04:00
parent acc509878e
commit de0b63a48d
5 changed files with 48 additions and 29 deletions
+2 -1
View File
@@ -75,8 +75,10 @@ public:
std::string getRealDirectory(const char *filename) const;
bool exists(const char *path) const;
bool isDirectory(const char *dir) const;
bool isFile(const char *file) const;
bool isSymlink(const char *filename) const;
bool createDirectory(const char *dir);
@@ -93,7 +95,6 @@ public:
void setSymlinksEnabled(bool enable);
bool areSymlinksEnabled() const;
bool isSymlink(const char *filename) const;
std::vector<std::string> &getRequirePath();