User Tools

Site Tools


syntax:functions:filename

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
syntax:functions:filename [2017/12/23 09:35] – created dmitrysyntax:functions:filename [2021/08/29 00:31] craigt
Line 1: Line 1:
-===== filename(text) =====+====== Filename(path) ====== 
 +Category:  File function  (found in the "Special" category in the EasyMorph application) 
 + 
 +\\  
 +=====Description===== 
 +This function extracts the filename (without extensionfrom a full file path. 
 + 
 +\\  
 +=====Arguments===== 
 +^Argument^Type^Description^ 
 +|path  |Text  |A file path including the file name.| 
 + 
 +**Return value type:** Text. 
 + 
 +\\  
 +=====Remarks===== 
 +This function works with both relative and absolute file paths. 
 + 
 + 
 +\\  
 +=====Examples===== 
 + 
 +   filename('C:\Documents\myproject.morph' //Returns 'myproject' 
 + 
 +   filename('…\mypath\myfile.txt' //Returns 'myfile' 
 + 
 +\\  
 +=====See also===== 
 +  * [[syntax:functions:directory|Directory(full_path)]] 
 +  * [[syntax:functions:fileextension|FileExtension(path)]]
  
-Extracts the filename from a full file path. 
  
-^  Example  ^  Result  ^ 
-| filename('C:\Documents\myproject.morph' |myproject.morph | 
syntax/functions/filename.txt · Last modified: 2022/11/11 10:02 by dmitry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki