Use Glib::build_filename in PBD::sys::copy_files
git-svn-id: svn://localhost/ardour2/branches/3.0@12852 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
3e77868269
commit
4cda435203
|
@ -219,12 +219,9 @@ copy_files(const std::string & from_path, const std::string & to_dir)
|
|||
PathScanner scanner;
|
||||
vector<string*>* files = scanner (from_path, accept_all_files, 0, true, false);
|
||||
for (vector<string*>::iterator i = files->begin(); i != files->end(); ++i) {
|
||||
sys::path from = from_path;
|
||||
from /= **i;
|
||||
sys::path to = to_dir;
|
||||
to /= **i;
|
||||
|
||||
copy_file (from.to_string(), to.to_string());
|
||||
std::string from = Glib::build_filename (from_path, **i);
|
||||
std::string to = Glib::build_filename (to_dir, **i);
|
||||
copy_file (from, to);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user