Commit 4aa93ca9 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

XFS file system

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@65885 954022d7-b5bf-4e40-9824-e11837661b57
parent 77d864af
......@@ -179,7 +179,19 @@ namespace NSDirectory
{
while ((dirp = readdir(dp)) != NULL)
{
if(DT_DIR == dirp->d_type)
bool bIsDir = false;
if (DT_DIR == dirp->d_type)
bIsDir = true;
else if (DT_UNKNOWN == dirp->d_type)
{
// XFS problem
struct stat buff;
std::string sTmp = std::string((char*)pUtf8) + "/" + std::string(dirp->d_name);
stat(sTmp.c_str(), &buff);
if (S_ISDIR(buff.st_mode))
bIsDir = true;
}
if(bIsDir)
{
if(dirp->d_name[0] != '.')
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment