move storage into subdir

This commit is contained in:
Raven Scott 2024-06-08 23:49:34 -04:00
parent 4e961aebb7
commit 6d469dd0fd

2
app.js
View File

@ -8,7 +8,7 @@ import Hyperdrive from 'hyperdrive';
import Corestore from 'corestore';
import { EventEmitter } from 'events';
const storagePath = `./storage_${Date.now()}_${Math.random().toString(36).substring(2, 15)}`;
const storagePath = `./storage/storage_${Date.now()}_${Math.random().toString(36).substring(2, 15)}`;
const store = new Corestore(storagePath);
const drive = new Hyperdrive(store);