memcpy(path.string + control_group.path.used, control_group.groups.array[i].string, sizeof(f_char_t) * control_group.groups.array[i].used);
path.string[path.used] = 0;
- status = fl_directory_create(path, F_file_mode_all_rwx_d);
- if (F_status_is_error(status)) break;
+ status = f_directory_exists(path);
+ if (status == F_false) return F_status_set_error(F_directory_not);
+ if (F_status_is_error(status)) return status;
+
+ if (status == F_file_found_not) {
+ status = fl_directory_create(path, F_file_mode_all_rwx_d);
+ if (F_status_is_error(status)) return status;
+ }
} // for
if (F_status_is_error(status)) return status;