Machine Learning - Supporting multiple model import (#9869)

* Machine Learning Extension - Changed the deploy wizard to deploy multiple files
This commit is contained in:
Leila Lali
2020-04-13 10:26:10 -07:00
committed by GitHub
parent 15fc4517ee
commit 3aa357629d
23 changed files with 743 additions and 332 deletions

View File

@@ -248,3 +248,15 @@ export async function writeFileFromHex(content: string): Promise<string> {
await fs.promises.writeFile(tempFilePath, Buffer.from(content, 'hex'));
return tempFilePath;
}
/**
*
* @param filePath Returns file name
*/
export function getFileName(filePath: string) {
if (filePath) {
return filePath.replace(/^.*[\\\/]/, '');
} else {
return '';
}
}