Parameters
$fileSpec - The file specification.
Returns
The file path.
Syntax
PHP |
public static function GetFileSpecPath(string $fileSpec) : string
|
Gets the Path from the file spec.
Remarks
Parses to the last "/".
Example
PHP |
include_once "LJCRoot.php";
$prefix = RelativePrefix();
include_once "$prefix/LJCPHPCommon/LJCCollectionLib.php";
// $text = "../Folder"
$text = LJCCommon::GetFileSpecPath("../Folder/File.txt");
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.