Gocator API

- Home
- Types
- Files

All Classes Files Functions Variables Typedefs Macros Modules Pages

kStatus GoSensor_DirectoryFileNameAt | ( | GoSensor | sensor,
|  | const kChar * | extensionFilter,
|  | const kChar * | path,
|  | kBool | isRecursive,
|  | kSize | index,
|  | kChar * | fileName,
|  | kSize | capacity
| ) |  |

Retrieves the file name at the specified index for a given path and optional extension filter.

Version
  Introduced in firmware 4.1.3.106

Parameters

  sensor | GoSensor object.
  extensionFilter | An optional extension filter to apply. Send "" to not apply a filter.
  path | The file system path to retrieve the file count for.
  isRecursive | kTRUE to include files in sub-folders of the path and kFALSE to only count files in the immediate path.
  index | The index of the file name to retrieve.
  fileName | The pointer to a character array of which to store the retrieve file name.
  capacity | The maximum capacity of the character array.

Returns
  Operation status.