=== modified file 'src/io/filesystem/disk_filesystem.cc' --- src/io/filesystem/disk_filesystem.cc 2010-11-03 01:04:47 +0000 +++ src/io/filesystem/disk_filesystem.cc 2011-04-13 20:28:27 +0000 @@ -149,12 +149,18 @@ int32_t i, count; int32_t ofs; - if (path.size()) - buf = m_directory + '/' + path + '/' + pattern; - else + if (path.size()) { + if (pathIsAbsolute(path)) { + buf = path + '/' + pattern; + ofs = 0; + } else { + buf = m_directory + '/' + path + '/' + pattern; + ofs = m_directory.length() + 1; + } + } else { buf = m_directory + '/' + pattern; - ofs = m_directory.length() + 1; - + ofs = m_directory.length() + 1; + } if (glob(buf.c_str(), 0, 0, &gl)) return 0;