File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -315,12 +315,14 @@ int main(size_t argc, char* _argv[]) {
315315 arg_info::out_path = std::filesystem::absolute (arg_info::out_path);
316316 if (std::filesystem::is_regular_file (arg_info::in_path)) {
317317 arg_info::is_full_mode = true ;
318- std::filesystem::create_directories (arg_info::out_path.parent_path ());
318+ if (!arg_info::using_std_out)
319+ std::filesystem::create_directories (arg_info::out_path.parent_path ());
319320 arg_info::in_path_dir = arg_info::in_path.parent_path ();
320321 process_file (arg_info::in_path.string (), arg_info::out_path.string (), arg_info::in_path_dir);
321322 }
322323 else if (std::filesystem::is_directory (arg_info::in_path)) {
323- std::filesystem::create_directories (arg_info::out_path);
324+ if (!arg_info::using_std_out)
325+ std::filesystem::create_directories (arg_info::out_path);
324326 arg_info::in_path_dir = arg_info::in_path;
325327 // process just superficial files
326328 for (auto & p: std::filesystem::directory_iterator (arg_info::in_path)) {
You can’t perform that action at this time.
0 commit comments