Archive now uses file system instead of collection

This commit is contained in:
Stefan Zermatten
2021-12-19 12:20:09 +02:00
parent 211659f759
commit 1e10d8751b
11 changed files with 223 additions and 24 deletions

View File

@@ -0,0 +1,6 @@
import { promises as fs } from 'fs';
// Read a file and return the result
export default function read(file){
return fs.readFile(file.path, 'utf8');
}