VideoChain-API / src /initFolders.mts
jbilcke-hf's picture
jbilcke-hf HF staff
add "movie director assistant" LLM step
e4e0e54
raw
history blame
587 Bytes
import {
metadataDirPath,
pendingMetadataDirFilePath,
completedMetadataDirFilePath,
filesDirPath,
pendingFilesDirFilePath,
completedFilesDirFilePath
} from "./config.mts"
import { createDirIfNeeded } from "./utils/createDirIfNeeded.mts"
export const initFolders = () => {
console.log(`initializing folders..`)
createDirIfNeeded(metadataDirPath)
createDirIfNeeded(pendingMetadataDirFilePath)
createDirIfNeeded(completedMetadataDirFilePath)
createDirIfNeeded(filesDirPath)
createDirIfNeeded(pendingFilesDirFilePath)
createDirIfNeeded(completedFilesDirFilePath)
}