nx.js
NamespacesSwitchFunctions

readDirSync

readDirSync(path): null | string[]

Synchronously returns an array of the file names within path.

Parameters

ParameterType
pathPathLike

Returns

null | string[]

Example

for (const file of Switch.readDirSync('sdmc:/')) {
  // … do something with `file` …
}

On this page