Signed commit testing
This commit is contained in:
@@ -1,7 +1,11 @@
|
|||||||
# How to use
|
# What is this?
|
||||||
|
This is an app I wrote to rename the downloaded files from https://spotidownloader.com/en10
|
||||||
|
Often times when I am downloading music from there, I am donwloading a lot of music and it can be a hassle or very time consuming to rename the files by hand.
|
||||||
|
|
||||||
|
## How to use
|
||||||
|
|
||||||
### Install
|
### Install
|
||||||
2. Run: `npm i -g pnpm` (If you do not have pnpm. Requires NodeJS)
|
2. Run: `npm i -g pnpm` (If you do not have pnpm. Requires [NodeJS](https://nodejs.org))
|
||||||
3. Run: `pnpm i` - Installs packages
|
3. Run: `pnpm i` - Installs packages
|
||||||
|
|
||||||
### Running
|
### Running
|
||||||
|
|||||||
10
app/index.js
10
app/index.js
@@ -1,17 +1,9 @@
|
|||||||
require("dotenv").config();
|
require("dotenv").config();
|
||||||
|
|
||||||
const fs = require("fs").promises;
|
const fs = require("fs").promises;
|
||||||
const fss = require("fs"); // sync fs api
|
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const mm = require("music-metadata");
|
|
||||||
const os = require("os");
|
const os = require("os");
|
||||||
|
|
||||||
/**
|
|
||||||
* Recursively list all files inside `rootDir`.
|
|
||||||
* - returns an array of absolute file paths
|
|
||||||
* - skips unreadable directories but logs a warning
|
|
||||||
* - follows symlinks that point to files, but skips symlinked directories
|
|
||||||
*/
|
|
||||||
async function listAllFiles(rootDir) {
|
async function listAllFiles(rootDir) {
|
||||||
const files = [];
|
const files = [];
|
||||||
const directories = [];
|
const directories = [];
|
||||||
@@ -63,8 +55,6 @@ async function listAllFiles(rootDir) {
|
|||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// other types (FIFO, socket, etc.) are ignored
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user