Skip to content

Commit

Permalink
Merge pull request xbmc#6531 from mkortstiege/helix_smb_dotfiles
Browse files Browse the repository at this point in the history
[smbdirectory] mark dot files and folders hidden - helix
  • Loading branch information
mkortstiege committed Feb 25, 2015
2 parents c4ce8e3 + 95d549b commit aacffbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xbmc/filesystem/SMBDirectory.cpp
Expand Up @@ -128,6 +128,9 @@ bool CSMBDirectory::GetDirectory(const CURL& url, CFileItemList &items)
if(StringUtils::EndsWith(strFile, "$") && aDir.type == SMBC_FILE_SHARE )
continue;

if (StringUtils::StartsWith(strFile, "."))
hidden = true;

// only stat files that can give proper responses
if ( aDir.type == SMBC_FILE ||
aDir.type == SMBC_DIR )
Expand Down

0 comments on commit aacffbe

Please sign in to comment.