GUI/node_modules/slice2js/ice/cpp/src/IceUtil/FileUtil.cpp
//
// Determine if a regular file exists.
//
Determine if a regular file exists.
Determine if a regular file exists .
bool
IceUtilInternal::fileExists(const string& path)
{
    IceUtilInternal::structstat st;
    if(IceUtilInternal::stat(path, &st) != 0 || !S_ISREG(st.st_mode))
    {
        return false;
    }
    return true;
}
bool IceUtilInternal :: fileExists ( const string & path ) { IceUtilInternal :: structstat st ; if ( IceUtilInternal :: stat ( path , & st ) != 0 || ! S_ISREG ( st . st_mode ) ) { return false ; } return true ; }
Determine if a regular file exists.
Determine if a regular file exists .