mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-05-08 07:23:56 -05:00
Merge 09e79f0a39 into 34b173ba49
This commit is contained in:
commit
23f25c94cf
|
|
@ -8,9 +8,9 @@ import { error } from 'console';
|
|||
import { unpackS3P } from '../s3p';
|
||||
import { music_db } from '..';
|
||||
import { zipFolderToFile } from '../utils/zip';
|
||||
import path from 'path';
|
||||
|
||||
const joinUnder = (basePath: string, childPath: string) => {
|
||||
const path = require('path');
|
||||
const sanitizedChild = (childPath ?? '').replace(/^[/\\]+/, '');
|
||||
return path.join(basePath, sanitizedChild);
|
||||
};
|
||||
|
|
@ -253,6 +253,7 @@ export const import_assets = async (data: { path: string }, send: WebUISend) =>
|
|||
const sdvxInstallPath = data.path;
|
||||
console.log(sdvxInstallPath)
|
||||
let fs = require('fs')
|
||||
const path = require('path')
|
||||
|
||||
const graphicsDir = path.join(sdvxInstallPath, 'data', 'graphics');
|
||||
if (!fs.existsSync(graphicsDir)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user