Files
MusicMetaFinder/src/controllers/pathController.js
xtrullor73 a97736abee refactor: remove AuDD references and unused project files
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.
2024-05-09 23:40:46 -07:00

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);
}