File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -100,19 +100,6 @@ void do_compare(Arguments& args) {
100
100
}
101
101
}
102
102
103
- // create the directory of output file if it does not exist
104
- string output_dir = args.output_filename .substr (0 , args.output_filename .find_last_of (" /" ));
105
- struct stat info;
106
- if (stat (output_dir.c_str (), &info) != 0 ) {
107
- cout << " The directory " << output_dir << " does not exist. Creating..." << endl;
108
- // create the directory
109
- string create_dir_command = " mkdir -p " + output_dir;
110
- if (system (create_dir_command.c_str ()) != 0 ) {
111
- cerr << " Error in creating the directory " << output_dir << endl;
112
- exit (1 );
113
- }
114
- }
115
-
116
103
// write the header in the output file
117
104
ofstream output_file (args.output_filename );
118
105
if (!output_file.is_open ()) {
You can’t perform that action at this time.
0 commit comments