diff --git a/script-meta-v2.json b/script-meta-v2.json index 80139dd..97037fc 100644 --- a/script-meta-v2.json +++ b/script-meta-v2.json @@ -211,12 +211,12 @@ }, "tree.ts": { "script_name": "tree.ts", - "script_length": 2183, - "script_sha256": "72ce79ad59965f52fb071a11c66ca7096a45b120297b33bae719b6943cb4edb7", + "script_length": 2275, + "script_sha256": "8963ea40f22488fcb37d1da374d9da58dc359c58cbf1a072e54a4429166fcfca", "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/tree.ts", "single_script_file": true, "publish_time": 1769361581018, - "update_time": 1769443729987 + "update_time": 1769446454854 }, "wget.ts": { "script_name": "wget.ts", diff --git a/single-scripts/tree.ts b/single-scripts/tree.ts index a7b1491..a503c6c 100755 --- a/single-scripts/tree.ts +++ b/single-scripts/tree.ts @@ -1,8 +1,21 @@ #!/usr/bin/env runts -- --allow-read --allow-import -import {formatSize2, joinPath, log, term,} from "https://global.hatter.ink/script/get/@16/deno-commons-mod.ts"; +import { + formatSize2, + joinPath, + log, + term, +} from "https://global.hatter.ink/script/get/@16/deno-commons-mod.ts"; -const defaultSkipDirs = [".git", ".idea", ".gradle", "target"]; +const defaultSkipDirs = [ + ".git", + ".idea", + ".gradle", + "target", + ".DS_Store", + ".localized", + "node_modules", +]; async function listDir( dir: string, @@ -60,5 +73,5 @@ async function main(): Promise { main().catch((e) => log.error(e)); -// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260127T000838+08:00.MEYCIQC9pWilKstiV/1wrWau -// ZPzfyKUOS8b3DTQ975hRnpUT8wIhAJkP/yTNPfrS9XUEsTid5D/019Wyv4SmRol4UsHRfiHo +// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260127T005403+08:00.MEUCIFwdYkm52+V1DPMbAfoe +// b9/2d4Lnf0lfVqFbE3S17N+FAiEA8ySrI+cc6aKtr2eyy1veHPbTxPHoh57Cg3ozdYrzJfI=