mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 06:38:47 +00:00
Merge pull request #5459 from harold-b/hb.simplify-import-odin-ext-folders-check
Use `fi.is_dir` instead of `path_is_directory()` during directory check when collecting .odin files
This commit is contained in:
+2
-2
@@ -5797,7 +5797,7 @@ gb_internal AstPackage *try_add_import_path(Parser *p, String path, String const
|
|||||||
for (FileInfo fi : list) {
|
for (FileInfo fi : list) {
|
||||||
String name = fi.name;
|
String name = fi.name;
|
||||||
String ext = path_extension(name);
|
String ext = path_extension(name);
|
||||||
if (ext == FILE_EXT && !path_is_directory(name)) {
|
if (ext == FILE_EXT && !fi.is_dir) {
|
||||||
files_with_ext += 1;
|
files_with_ext += 1;
|
||||||
}
|
}
|
||||||
if (ext == FILE_EXT && !is_excluded_target_filename(name)) {
|
if (ext == FILE_EXT && !is_excluded_target_filename(name)) {
|
||||||
@@ -5822,7 +5822,7 @@ gb_internal AstPackage *try_add_import_path(Parser *p, String path, String const
|
|||||||
for (FileInfo fi : list) {
|
for (FileInfo fi : list) {
|
||||||
String name = fi.name;
|
String name = fi.name;
|
||||||
String ext = path_extension(name);
|
String ext = path_extension(name);
|
||||||
if (ext == FILE_EXT && !path_is_directory(name)) {
|
if (ext == FILE_EXT && !fi.is_dir) {
|
||||||
if (is_excluded_target_filename(name)) {
|
if (is_excluded_target_filename(name)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user