From 105cccfdde4af9704dcc6956f2f8f18791b5982d Mon Sep 17 00:00:00 2001 From: monoid Date: Thu, 21 Jul 2022 01:51:20 +0900 Subject: [PATCH] fix: glob pattern --- transform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transform.ts b/transform.ts index 19e9aea..96824f6 100644 --- a/transform.ts +++ b/transform.ts @@ -3,7 +3,7 @@ import $ from "https://deno.land/x/dax@0.7.1/mod.ts"; import { expandGlob } from "https://deno.land/std@0.148.0/fs/mod.ts"; import { relative, parse, resolve } from "https://deno.land/std@0.148.0/path/mod.ts"; -for await (const file of expandGlob("*.wav")){ +for await (const file of expandGlob("**/*.wav")){ const from = relative(Deno.cwd(),file.path); const parsed = parse(from); const to = resolve(parsed.dir,parsed.name+".flac")