We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b93e9e + bb94326 commit 0c0cc70Copy full SHA for 0c0cc70
src/compare.cpp
@@ -100,19 +100,6 @@ void do_compare(Arguments& args) {
100
}
101
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
// write the header in the output file
117
ofstream output_file(args.output_filename);
118
if (!output_file.is_open()) {
0 commit comments