Changeset 3268

Show
Ignore:
Timestamp:
03/31/07 14:13:02 (6 years ago)
Author:
balister
Message:

Fix valid path test.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossie/branches/philip-work/framework/helperFunctions.cpp

    r3264 r3268  
    3636bool ossieSupport::isValidFileName(const char *fileName) 
    3737{ 
    38     return boost::filesystem::portable_posix_name(fileName); 
     38    try { 
     39        boost::filesystem::path testPath(fileName, boost::filesystem::portable_posix_name); 
     40    } catch (...) { 
     41        return false; 
     42    } 
     43 
     44    return true; 
    3945}