summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-23 15:28:39 +0100
committerAndreas Stöckel <andreas@somweyr.de>2015-01-23 15:28:39 +0100
commit2fbb15a2d80b878af1919fea7331c945d6ab43a0 (patch)
treeefe23683291522ca6c7b32b363518dce16b93576 /src/plugins
parent1131b68bdf2949f56422a2c53617a5f7d2d9be47 (diff)
replaced nonexistant is_file with is_regular_file
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/filesystem/FileLocator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/filesystem/FileLocator.cpp b/src/plugins/filesystem/FileLocator.cpp
index 6804c6d..356394e 100644
--- a/src/plugins/filesystem/FileLocator.cpp
+++ b/src/plugins/filesystem/FileLocator.cpp
@@ -131,7 +131,7 @@ bool FileLocator::doLocate(Resource &resource, const std::string &path,
base /= path;
// If we already found a fitting resource there, use that.
- if (fs::exists(base) && fs::is_file(base)) {
+ if (fs::exists(base) && fs::is_regular_file(base)) {
std::string location = fs::canonical(base).generic_string();
#ifdef FILELOCATOR_DEBUG_PRINT
std::cout << "FileLocator: Found \"" << path << "\" at "
@@ -159,7 +159,7 @@ bool FileLocator::doLocate(Resource &resource, const std::string &path,
#endif
fs::path p{*it};
p /= path;
- if (fs::exists(p) && fs::is_file(p)) {
+ if (fs::exists(p) && fs::is_regular_file(p)) {
std::string location = fs::canonical(p).generic_string();
#ifdef FILELOCATOR_DEBUG_PRINT
std::cout << "FileLocator: Found \"" << path << "\" in "