/ LJCPHPCodeDoc / LJCCommonLib / LJCCommon / GetFileSpecPath


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. (E)

Remarks

Parses to the last "/".

Example

PHP
 $webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
 require_once "$webCommonPath/LJCCommonLib.php";
 
 // $text = "../Folder"
 $text = LJCCommon::GetFileSpecPath("../Folder/File.txt");

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.