p2p syncing refactor

This commit is contained in:
mrfry
2023-05-01 16:29:59 +02:00
parent 1a3c806e66
commit 5ececa2de5
6 changed files with 309 additions and 219 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ import {
import logger from './logger'
import utils from './utils'
import { HttpsFiles } from '../types/basicTypes'
import path from 'node:path'
// FIXME: remove all file exists checks from everywhere for files that are created / checked here
@@ -324,7 +325,7 @@ export const files = {
// user files
// --------------------------------------------------------------------------------
userFilesDir: {
path: publicDir + 'userFiles',
path: path.join(publicDir, 'userFiles'),
isDir: true,
},
} as const satisfies Record<string, FileDescriptor>