whatever
This commit is contained in:
parent
cdcaf0e708
commit
2a93072e7c
4
index.js
4
index.js
@ -115,7 +115,9 @@ async function thing() {
|
||||
album, artist, title, trackNum, file, image,
|
||||
} of files) {
|
||||
const path = `${os.homedir()}/Music/${album}/${artist} - ${title}.mp3`;
|
||||
await fs.ensureDir(`${os.homedir()}/Music/${album}`);
|
||||
try {
|
||||
await fs.mkdir(`${os.homedir()}/Music/${album}`, { recursive: true });
|
||||
} catch (err) { }
|
||||
|
||||
if (!(await fs.exists(path))) {
|
||||
console.log(`Encoding to: ${path}`);
|
||||
|
Loading…
Reference in New Issue
Block a user