williamdeathsong / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

gkPath::directory does not generate correct path #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Looks like the path generated by gkPath::directory is not recognized as a 
valid directory by gkPath::isDir function because the last separator added 
at the end of the path.

See example in OgreKit/Tests/ImplTest/Main.cpp

        gkPath p(argv[0]);
        if (p.isFile())
        {
            p = p.directory();
            if (p.isDir())
            {
// *** WILL NEVER ENTER HERE ***
                p.append("OgreKitStartup.conf");
                if (p.isFile())
                    defs.load(p.getPath());
            }

Original issue reported on code.google.com by silveira.nestor@gmail.com on 3 Feb 2010 at 9:19

GoogleCodeExporter commented 8 years ago
Thanks for reporting this issue. It has been updated.

Original comment by snailr...@gmail.com on 3 Feb 2010 at 8:23

GoogleCodeExporter commented 8 years ago

Original comment by snailr...@gmail.com on 3 Feb 2010 at 8:38