Core Function ParsePath

From Sputnik Wiki
Jump to: navigation, search
ParsePath ( <path> )

Contents

Description

Resolve a file name and locate its full path.

Parameters

path

The path to use best to use single file name such as "Stack.spk".

Return Value

Success: Returns absolute path.

Failure: Returns empty string.

Remarks

This will check for the file is current directory then Sputnik exe directory then lib, include folders of current and Sputnik then check for it in all "path" variable and so on.

It attempts to locate the file and return absolute path.

Example

println( "Stack.spk Path is: " . ParsePath("Collections/Stack.spk")  );
println( "calc.exe Path is: " . ParsePath("calc.exe")  );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox