|
@@ -122,7 +122,11 @@ export function deleteFiles(files) {
|
|
}
|
|
}
|
|
|
|
|
|
export function getScanFileBasename(filepath) {
|
|
export function getScanFileBasename(filepath) {
|
|
- return path.basename(filepath, path.extname(filepath)).split("_")[0];
|
|
|
|
|
|
+ return path
|
|
|
|
+ .basename(filepath, path.extname(filepath))
|
|
|
|
+ .split("_")
|
|
|
|
+ .slice(0, -1)
|
|
|
|
+ .join("_");
|
|
}
|
|
}
|
|
|
|
|
|
export function getPreUploadFiles(dir) {
|
|
export function getPreUploadFiles(dir) {
|