Modules/FileSystem/pathToFilename: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ This function returns the filename and the direction portions of a filepath, seperated into two strings. ==Syntax== <syntaxhighlight lang="lua"> string, string fsnamespace.pathToFilename( string path, bool includeExtention ) </syntaxhighlight> ==Arguments== *'''path''': the file path to extract from *'''includeExtention''': if true then the filename extention is included in the result ==Returns== This function returns the filename and directory of the provid...")
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<pageclass class="#e36242" subcaption="Namespace function"></pageclass>
__NOTOC__
__NOTOC__
This function returns the filename and the direction portions of a filepath, seperated into two strings.
This function returns the filename and the directory portions of a filepath, separated into two strings.


==Syntax==
==Syntax==
Line 19: Line 20:
</syntaxhighlight>
</syntaxhighlight>
{{:Modules/FileSystem/namespace/functions}}
{{:Modules/FileSystem/namespace/functions}}
{{:Modules/FileSystem/file/functions}}

Latest revision as of 04:00, 23 January 2022

This function returns the filename and the directory portions of a filepath, separated into two strings.

Syntax

string, string fsnamespace.pathToFilename( string path, bool includeExtention )

Arguments

  • path: the file path to extract from
  • includeExtention: if true then the filename extention is included in the result

Returns

This function returns the filename and directory of the provided file path.

Example

-- TODO

FileSystem Namespace Functions