Logo Search packages:      
Sourcecode: inkscape version File versions

bool buildtool::MakeBase::isRegularFile ( const String &  fileName  )  [protected, inherited]

Tests if the file exists and is a regular file

Definition at line 4296 of file buildtool.cpp.

References buildtool::MakeBase::getNativePath().

Referenced by buildtool::MakeBase::listFiles().

{
    String native = getNativePath(fileName);
    struct stat finfo;
    
    //Exists?
    if (stat(native.c_str(), &finfo)<0)
        return false;


    //check the file mode
    if (!S_ISREG(finfo.st_mode))
        return false;

    return true;
}


Generated by  Doxygen 1.6.0   Back to index