move storage into subdir
This commit is contained in:
parent
4e961aebb7
commit
6d469dd0fd
2
app.js
2
app.js
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user