Skip to content

Commit

Permalink
also skip symlinks and other special non files
Browse files Browse the repository at this point in the history
  • Loading branch information
AEnterprise committed Jul 13, 2024
1 parent 1b16adf commit 839cb35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ pub fn load_resources_from_folder(path: PathBuf) -> Result<Vec<Resource>> {
.file_type()
.with_context(|| format!("Failed to get item metadata for {path_name}/{name}"))?;

if meta.is_dir() {
warn!("Skipping {path_name}/{name} because it is a directory");
if !meta.is_file() {
debug!("Skipping {path_name}/{name} because it is not a file");
continue;
}

Expand Down

0 comments on commit 839cb35

Please sign in to comment.