add aif to list of supported audio file endings
This commit is contained in:
parent
4ade86f75c
commit
5e4eefa553
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ async function getFilesInDirectory(directory) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const subFiles = (await getFilesInDirectory(fullPath)).filter((f) =>
|
const subFiles = (await getFilesInDirectory(fullPath)).filter((f) =>
|
||||||
['wav', 'mp3', 'ogg'].includes(f.split('.').slice(-1)[0].toLowerCase()),
|
['wav', 'mp3', 'ogg', 'aif'].includes(f.split('.').slice(-1)[0].toLowerCase()),
|
||||||
);
|
);
|
||||||
files = files.concat(subFiles);
|
files = files.concat(subFiles);
|
||||||
LOG && console.log(`${dirent.name} (${subFiles.length})`);
|
LOG && console.log(`${dirent.name} (${subFiles.length})`);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue