mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-02 11:49:33 +01:00
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:
parent
a1bbbcb41b
commit
5c17bd3df2
1 changed files with 3 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue