spare some cycles
This commit is contained in:
parent
2d3a9b800f
commit
b19c737c82
1 changed files with 1 additions and 1 deletions
|
|
@ -48,8 +48,8 @@ async function getBanks(directory) {
|
|||
let files = await getFilesInDirectory(directory);
|
||||
let banks = {};
|
||||
directory = directory.split(sep).join('/');
|
||||
files = files.map((path) => path.split(sep).join('/'));
|
||||
files = files.map((path) => {
|
||||
path = path.split(sep).join('/');
|
||||
const [bank] = path.split('/').slice(-2);
|
||||
banks[bank] = banks[bank] || [];
|
||||
const relativeUrl = path.replace(directory, '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue