From eeb3bcec19b15e6b7d30f983c8f613dedb1a9b32 Mon Sep 17 00:00:00 2001
From: eug-vs <eugene@eug-vs.xyz>
Date: Sat, 22 Oct 2022 20:06:01 +0300
Subject: refactor: separate Nginx adapter

---
 src/deepReadDir.tsx | 12 ------------
 1 file changed, 12 deletions(-)
 delete mode 100644 src/deepReadDir.tsx

(limited to 'src/deepReadDir.tsx')

diff --git a/src/deepReadDir.tsx b/src/deepReadDir.tsx
deleted file mode 100644
index ec585ec..0000000
--- a/src/deepReadDir.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import {lstat, readdir} from 'node:fs/promises'
-import {join} from 'node:path'
-
-const deepReadDir = async (dirPath: string): Promise<string[]> => await Promise.all(
-  (await readdir(dirPath)).map(async (entity) => {
-    const path = join(dirPath, entity)
-    return (await lstat(path)).isDirectory() ? await deepReadDir(path) : path
-  }),
-).then(arr => arr.flat());
-
-
-export default deepReadDir;
-- 
cgit v1.2.3

