Core Function ParsePath

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
m (1 revision)

Revision as of 21:40, 11 August 2014

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("Stack.spk")  );
println( "calc.exe Path is: " . ParsePath("calc.exe")  );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox