FileDir$

Category: Strings

Back to System Functions


Signature

FileDir$(path As String)

Returns

String

Description

Returns the directory portion of a path. If the path does not include a directory, an empty string is returned.

Example

folder$ = FileDir$("assets/sprites/player.png")