output
Functions
- printFiles(lsFolder) ⇒
Promise.<void>
Asynchronously prints the paths of files from the provided
FolderData
to the console. For each file:- If it's a directory, it's skipped.
- If it's a file, its path is printed to the console.
- printStats(lsFolder, result)
Prints statistics about the processed files to the console.
- First, it prints all excluded files with the label 'EXCLUDE'.
- Then, for each entry in the
result
:- If there's no file associated with the entry, it's skipped.
- Otherwise, it logs the type of the entry and the source to destination mapping.
printFiles(lsFolder) ⇒ Promise.<void>
Asynchronously prints the paths of files from the provided FolderData
to the console. For each file:
- If it's a directory, it's skipped.
- If it's a file, its path is printed to the console.
Kind: global function
Returns: Promise.<void>
- A promise that resolves once all file paths have been printed.
Param | Type | Description |
---|---|---|
lsFolder | FolderData | The data structure containing paths and other folder-related information. |
Example
js
const folderData = {
paths: [...],
tree: [...],
excluded: [...]
};
await printFiles(folderData);
const folderData = {
paths: [...],
tree: [...],
excluded: [...]
};
await printFiles(folderData);
printStats(lsFolder, result)
Prints statistics about the processed files to the console.
- First, it prints all excluded files with the label 'EXCLUDE'.
- Then, for each entry in the
result
:- If there's no file associated with the entry, it's skipped.
- Otherwise, it logs the type of the entry and the source to destination mapping.
Kind: global function
Param | Type | Description |
---|---|---|
lsFolder | FolderData | The data structure containing paths and other folder-related information. |
result | Array.<ParseReturn> | An array of results from the parsing process. |
Example
js
const folderData = {
paths: [...],
tree: [...],
excluded: [...]
};
const results = [...];
printStats(folderData, results);
const folderData = {
paths: [...],
tree: [...],
excluded: [...]
};
const results = [...];
printStats(folderData, results);