VideoChain-API / src /initFolders.mts
jbilcke-hf's picture
jbilcke-hf HF staff
ok! now, time to debug and build the frontend..
5dfc565
raw
history blame
557 Bytes
import { tasksDirPath, pendingTasksDirFilePath, completedTasksDirFilePath, filesDirPath, pendingFilesDirFilePath, completedFilesDirFilePath } from "./config.mts"
import { createDirIfNeeded } from "./utils/createDirIfNeeded.mts"
export const initFolders = () => {
console.log(`initializing folders..`)
createDirIfNeeded(tasksDirPath)
createDirIfNeeded(pendingTasksDirFilePath)
createDirIfNeeded(completedTasksDirFilePath)
createDirIfNeeded(filesDirPath)
createDirIfNeeded(pendingFilesDirFilePath)
createDirIfNeeded(completedFilesDirFilePath)
}