Rocky_Mountain_Vending/.pnpm-store/v10/files/8b/3caddd12d4322ca4e4d9f2e838f27655557c2f78a224df058d4b4206a303c769be54f0803089beee8a059e78fbc6f5b36e6b3c86af3ea67d8ef687bc4c9919
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

18 lines
No EOL
510 B
Text

import { join } from 'path';
import fs from 'fs/promises';
export async function getFilesInDir(path) {
const dir = await fs.opendir(path);
const results = new Set();
for await (const file of dir){
let resolvedFile = file;
if (file.isSymbolicLink()) {
resolvedFile = await fs.stat(join(path, file.name));
}
if (resolvedFile.isFile()) {
results.add(file.name);
}
}
return results;
}
//# sourceMappingURL=get-files-in-dir.js.map