Logo Search packages:      
Sourcecode: inkscape version File versions

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

Tests if the file exists and is a directory

Definition at line 4316 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_ISDIR(finfo.st_mode))
        return false;

    return true;
}


Generated by  Doxygen 1.6.0   Back to index