mirror of
https://github.com/sasjs/lint.git
synced 2025-12-10 17:34:36 +00:00
11 lines
366 B
TypeScript
11 lines
366 B
TypeScript
import { listFilesInFolder } from '@sasjs/utils/file'
|
|
|
|
/**
|
|
* Fetches a list of .sas files in the given path.
|
|
* @returns {Promise<string[]>} resolves with an array of file names.
|
|
*/
|
|
export const listSasFiles = async (folderPath: string): Promise<string[]> => {
|
|
const files = await listFilesInFolder(folderPath)
|
|
return files.filter((f) => f.endsWith('.sas'))
|
|
}
|