mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 19:07:40 +01:00
Fix VRM assets console spam
This commit is contained in:
parent
530bf81940
commit
51014e7a8d
@ -56,6 +56,8 @@ function validateAssetFileName(inputFilename) {
|
||||
* @returns {string[]} - The array of files
|
||||
*/
|
||||
function getFiles(dir, files = []) {
|
||||
if (!fs.existsSync(dir)) return files;
|
||||
|
||||
// Get an array of all files and directories in the passed directory using fs.readdirSync
|
||||
const fileList = fs.readdirSync(dir, { withFileTypes: true });
|
||||
// Create the full path of the file/directory by concatenating the passed directory and file/directory name
|
||||
|
Loading…
x
Reference in New Issue
Block a user