From b44c4d10fb7c3bdd4bd6a7cc4f5a5d95a52f54bf Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 28 Sep 2025 13:57:24 -0700 Subject: [PATCH] hmmm --- app/src/utils.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/utils.tsx b/app/src/utils.tsx index 5af1c35..adce913 100644 --- a/app/src/utils.tsx +++ b/app/src/utils.tsx @@ -37,6 +37,11 @@ export function isDir(path: string): boolean { } } +export async function mtime(path: string): Promise { + const { mtime } = await stat(path) + return mtime +} + // is the given file binary? export async function isBinaryFile(path: string): Promise { // Create a stream to read just the beginning