Skip to content

Commit

Permalink
Attempt to debug where the folders are
Browse files Browse the repository at this point in the history
  • Loading branch information
tomouchuu committed Oct 20, 2023
1 parent 33b87b4 commit 255e0de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/backend/src/routes/backups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const backups = new Elysia()
)
.use(html())
.get('/backups', () => {
console.log({ backupFolder })
const files = fs.readdirSync(backupFolder)
const liFiles = files
.map((file) => `<li><a href="/backups/${file}">${file}</a></li>`)
Expand Down
2 changes: 2 additions & 0 deletions apps/backend/src/routes/streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ if (!fs.existsSync(streamsFolder)) {
const streams = new Elysia()
.use(setup)
.get('/streams', async ({ store: { redis } }) => {
console.log({ streamsFolder })

const streams = fs
.readdirSync(streamsFolder)
.filter((file) => !file.includes('.'))
Expand Down

0 comments on commit 255e0de

Please sign in to comment.