Skip to main content

isValidFitFilePathCandidate

FitFileViewer - API Documentation v29.8.0


FitFileViewer - API Documentation / main/security/fileAccessPolicy / isValidFitFilePathCandidate

Function: isValidFitFilePathCandidate()

isValidFitFilePathCandidate(filePath: unknown): filePath is string

Defined in: main/security/fileAccessPolicy.js:174

Validate that a value is a well-formed absolute filesystem path to a .fit file.

This does NOT approve anything; it's intended for callers that need to filter user-provided or persisted lists (e.g., recent-files.json) without mutating allowlist state.

Parameters​

filePath​

unknown

Returns​

filePath is string