From 26bf4654ce5b8ab36ecf7c8d29b2d95becd94550 Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 22 Jul 2010 14:50:47 +0000 Subject: [PATCH] use Glib::build_filename() to construct fullpath, rather than doing it by hand (hello, windows) git-svn-id: svn+ssh://ardour.org/ardour2/branches/3.0@7469 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/clear_dir.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libs/pbd/clear_dir.cc b/libs/pbd/clear_dir.cc index 1966605a..3fa9b223 100644 --- a/libs/pbd/clear_dir.cc +++ b/libs/pbd/clear_dir.cc @@ -5,6 +5,8 @@ #include #include +#include + #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* 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; } -- 2.11.4.GIT