use Glib::build_filename() to construct fullpath, rather than doing it by hand (hello, windows)

git-svn-id: svn://localhost/ardour2/branches/3.0@7469 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-07-22 14:50:47 +00:00
parent a1bbbcb41b
commit 5c17bd3df2

View file

@ -5,6 +5,8 @@
#include <errno.h>
#include <string.h>
#include <glibmm/miscutils.h>
#include "pbd/error.h"
#include "pbd/compose.h"
#include "pbd/clear_dir.h"
@ -35,12 +37,8 @@ PBD::clear_directory (const string& dir, size_t* size, vector<string>* paths)
continue;
}
string fullpath;
string fullpath = Glib::build_filename (dir, dentry->d_name);
fullpath = dir;
fullpath += '/';
fullpath += dentry->d_name;
if (::stat (fullpath.c_str(), &statbuf)) {
continue;
}