mirror of
https://github.com/xtrll/MusicMetaFinder.git
synced 2026-04-25 18:25:43 +02:00
Removed all files, dependencies, and mentions related to the AuDD API. Cleaned up the src directory, removing all non-developed or unused items, as part of a major cleanup. This change is due to the strategic shift towards using audio fingerprinting for song recognition, as opposed to sending the raw audio file itself.
15 lines
692 B
JavaScript
15 lines
692 B
JavaScript
import filesFetcher from '../utils/filesFetcher.js';
|
|
|
|
/**
|
|
* Handle the input path provided by the user to resolve file paths
|
|
* using the appropriate path handling utility. This controller function
|
|
* is responsible for initiating the file fetching process and ensuring
|
|
* that the paths returned comply with the expected format and conditions.
|
|
*
|
|
* @param {string} inputPath - The initial file or directory path provided by the user.
|
|
* @returns {Promise<string[]>} - A promise that resolves to an array of file paths,
|
|
* or rejects with an error if the operation fails.
|
|
*/
|
|
export async function fetchFiles(inputPath) {
|
|
return filesFetcher(inputPath);
|
|
} |