Skip to content

Commit 9f705f2

Browse files
committed
Create reprojected directory in GIS directory
1 parent f5326e3 commit 9f705f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utility_functions.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,17 +227,20 @@ void UtilityFunctions::move_extracted_files(const std::string job_num, const std
227227
const std::string date {get_local_date()};
228228
const std::string dir_structure {home + "\\Documents\\Comsof_Jobs\\" + state + "\\" + city};
229229
const std::string out_path {dir_structure + "\\" + date.c_str() + "-" + job_num.c_str()};
230+
const std::string reproj_path {out_path + "\\reprojected"};
230231
std::cout << "Moving to working dir " << out_path << std::endl;
231232

232233
// Convert string to ws
233-
std::wstring dir_structure_ws {std::wstring(dir_structure.begin(), dir_structure.end())};
234+
std::wstring reproj_path_ws {std::wstring(reproj_path.begin(), reproj_path.end())};
234235

235236
//_wrename(tmp_dir_wt, out_path_wt);
236237
try {
237238
std::filesystem::rename(tmp_dir, out_path);
238239
} catch (std::filesystem::filesystem_error) {
239240
std::cout << out_path << " already exists" << std::endl;
240241
}
242+
243+
create_directory_recursively(reproj_path_ws);
241244
}
242245

243246
void UtilityFunctions::create_directory_recursively(const std::wstring &directory) {

0 commit comments

Comments
 (0)