MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / grabFileNames

Method grabFileNames

lib/helper/FileSystem.js:198–200  ·  view source on GitHub ↗

* Returns file names in current directory. * * ```js * I.handleDownloads(); * I.click('Download Files'); * I.amInPath('output/downloads'); * const downloadedFileNames = I.grabFileNames(); * ```

()

Source from the content-addressed store, hash-verified

196 * ```
197 */
198 grabFileNames() {
199 return fs.readdirSync(this.dir).filter(item => !fs.lstatSync(path.join(this.dir, item)).isDirectory())
200 }
201}
202
203export { FileSystem as default }

Callers 2

seeFileNameMatchingMethod · 0.95
FileSystem_test.jsFile · 0.80

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected