You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cerr << "ERROR: '" << s << "' is a folder, not a file, quit now" << endl;
189
+
string dir = dirname(s);
190
+
if(!file_exists(dir)) {
191
+
cerr << "ERROR: '" << dir << " doesn't exist. Create this folder and run this command again." << endl;
191
192
exit(-1);
192
193
}
193
-
string dir = dirname(s);
194
-
if(!is_directory(dir)){
195
-
cerr << "ERROR: '" << s << "' cannot be created, please confirm the folder "<< dir << " exists. Create this folder and run this command again." << endl;
194
+
if(is_directory(s)){
195
+
cerr << "ERROR: '" << s << "' is not a writable file, quit now" << endl;
0 commit comments