Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 617 Bytes

File metadata and controls

29 lines (16 loc) · 617 Bytes

@google-github-actions/actions-utils


@google-github-actions/actions-utils / path / toPlatformPath

Function: toPlatformPath()

toPlatformPath(pth): string

Defined in: path.ts:49

toPlatformPath converts the given path to a platform-specific path. It does this by replacing instances of / and \ with the platform-specific path separator.

Parameters

pth

string

The path to platformize.

Returns

string

string The platform-specific path.