Skip to content

Commit

Permalink
Log when files are filtered due to non-audio extension
Browse files Browse the repository at this point in the history
  • Loading branch information
17cupsofcoffee committed May 5, 2024
1 parent e7bbf71 commit d855f2a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,17 @@ private static Dictionary<string, List<string>> searchForFiles(string include)

foreach (string file in Glob.ExpandNames(include))
{
if (AbletonMetadata.IsMetadata(file) || !AbletonMetadata.IsSupportedSampleFormat(file) || Directory.Exists(file))
if (AbletonMetadata.IsMetadata(file) || Directory.Exists(file))
{
continue;
}

if (!AbletonMetadata.IsSupportedSampleFormat(file))
{
Console.WriteLine($"Skipping {file} as it doesn't look like an audio file");
continue;
}

var parent = Directory.GetParent(file)!.FullName;
var filename = Path.GetFileName(file);

Expand Down

0 comments on commit d855f2a

Please sign in to comment.