Improved modelPath composition

This commit is contained in:
Alexander Cerutti
2019-07-25 22:09:27 +02:00
parent 492f5239df
commit 693694a9eb

View File

@@ -54,7 +54,7 @@ export async function getModelContents(model: FactoryOptions["model"]) {
export async function getModelFolderContents(model: string): Promise<PartitionedBundle> {
try {
const modelPath = model + (!path.extname(model) && ".pass");
const modelPath = `${model}${!path.extname(model) && ".pass" || ""}`;
const modelFilesList = await readDir(modelPath);
// No dot-starting files, manifest and signature