mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-07 17:23:56 -05:00
Machine Learning - Supporting multiple model import (#9869)
* Machine Learning Extension - Changed the deploy wizard to deploy multiple files
This commit is contained in:
@@ -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 '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user