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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user