should use full path to check directory

This commit is contained in:
minggo 2016-06-22 10:19:35 +08:00
parent ed955cbe1d
commit 6b9c76fd93
1 changed files with 1 additions and 1 deletions

View File

@ -1008,7 +1008,7 @@ bool FileUtils::isDirectoryExist(const std::string& dirPath) const
for (const auto& resolutionIt : _searchResolutionsOrderArray)
{
// searchPath + file_path + resourceDirectory
fullpath = searchIt + dirPath + resolutionIt;
fullpath = fullPathForFilename(searchIt + dirPath + resolutionIt);
if (isDirectoryExistInternal(fullpath))
{
_fullPathCache.insert(std::make_pair(dirPath, fullpath));