Skip to content

Commit

Permalink
[posixdirectory] changed IsAliasShortcut handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mkortstiege committed Jul 2, 2014
1 parent 81b0220 commit 0a093f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xbmc/filesystem/posix/PosixDirectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,13 @@ bool CPosixDirectory::Remove(const CURL& url)

bool CPosixDirectory::Exists(const CURL& url)
{
std::string path = url.Get();

if (IsAliasShortcut(path))
TranslateAliasShortcut(path);

struct stat buffer;
if (stat(url.Get().c_str(), &buffer) != 0)
if (stat(path.c_str(), &buffer) != 0)
return false;
return S_ISDIR(buffer.st_mode) ? true : false;
}
Expand Down

0 comments on commit 0a093f8

Please sign in to comment.