Replace + "/" + with String::file_add()

This commit is contained in:
Nils ANDRÉ-CHANG
2019-06-16 13:31:57 +01:00
parent f410e7a8a9
commit d2833d4f4d
17 changed files with 39 additions and 39 deletions

View File

@ -1329,7 +1329,7 @@ void FileSystemDock::_duplicate_operation_confirm() {
if (to_duplicate.is_file) {
new_path = base_dir.plus_file(new_name);
} else {
new_path = base_dir.substr(0, base_dir.find_last("/")) + "/" + new_name;
new_path = base_dir.substr(0, base_dir.find_last("/")).plus_file(new_name);
}
//Present a more user friendly warning for name conflict