Subversion Repositories tpanel

Rev

Rev 88 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 88 Rev 116
Line 35... Line 35...
35
 
35
 
36
    struct stat buffer;
36
    struct stat buffer;
37
 
37
 
38
    if (stat (file.c_str(), &buffer) != 0)
38
    if (stat (file.c_str(), &buffer) != 0)
39
    {
39
    {
40
        MSG_WARNING("File access error: " << strerror(errno));
40
        MSG_WARNING("File access error (" << file << "): " << strerror(errno));
41
        return false;
41
        return false;
42
    }
42
    }
43
 
43
 
44
    if ((buffer.st_mode & S_IFREG) > 0)
44
    if ((buffer.st_mode & S_IFREG) > 0)
45
        return true;
45
        return true;