Skip to content

Commit

Permalink
fix: remove lame warning msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Dec 26, 2024
1 parent 766869e commit 54311f4
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/carbon_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@ u8 carbon_fs_create_directory(const char *path) {
carbon_log_error("path is invalid");
return false;
}
if (carbon_fs_is_directory(path)) {
// NOTE: is this warning useful or is it kinda lame?
carbon_log_warn("directory already exists, skipping creation");
return true;
}
if (carbon_fs_is_directory(path)) return true;
#ifdef _WIN32
i8 result = _mkdir(path);
#else
Expand All @@ -139,11 +135,7 @@ u8 carbon_fs_create_directories(const char *path) {
carbon_log_error("path is invalid");
return false;
}
if (carbon_fs_is_directory(path)) {
// NOTE: is this warning useful or is it kinda lame?
carbon_log_warn("directory already exists, skipping creation");
return true;
}
if (carbon_fs_is_directory(path)) return true;
usz len = strlen(path) + 1;
char *pathcpy = carbon_string_dup(path);
for (usz i = 0; i < len && pathcpy[i]; ++i) {
Expand Down

0 comments on commit 54311f4

Please sign in to comment.