[osg-users] Bug in osgDB::findFileInDirectory

Robert Osfield robert.osfield at gmail.com
Tue Mar 27 11:42:32 PDT 2018


Hi Ricardo,

I have just tried with and wihtout the trailing slash and these are
the results I get under Linux,

./test --dir ~/OpenSceneGraph/include/osg --file version
Result with findFileInDirectory(): 1
/home/robert/OpenSceneGraph/include/osg/Version

./test --dir ~/OpenSceneGraph/include/osg/ --file version
Result with findFileInDirectory(): 0
Result with fileExists(): 0
concatenated=/home/robert/OpenSceneGraph/include/osg/version

Which confirms your suggestion that the trailing slash isn't handled
by findFileInDirectory().

Robert.


More information about the osg-users mailing list