User Tools

Site Tools


syntax:functions:ispathrooted
no way to compare when less than two revisions

Differences

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


Previous revision
syntax:functions:ispathrooted [2021/08/29 01:07] (current) craigt
Line 1: Line 1:
 +====== IsPathRooted(full_path) ======
 +Category:  File function  (found in the "Special" category in the EasyMorph application)
 +
 +\\ 
 +=====Description=====
 +This function detects if a path to a file or folder contains a root.
 +
 +Network locations are supported.
 +
 +\\ 
 +=====Use cases=====
 +Use this function to differentiate between an //absolute// path versus a //relative// path.
 +
 +\\ 
 +=====Arguments=====
 +^Argument^Type^Description^
 +|full_path  |Text  |A local or network file path, with or without a file name.|
 +
 +**Return value type:** Boolean (TRUE/FALSE)
 +
 +\\ 
 +=====Examples=====
 +
 +  ispathrooted('C:\Documents\myproject.morph' //Returns TRUE
 +
 +  ispathrooted('…\mypath\myfile.txt' //Returns FALSE
 +
 +  ispathrooted('\\MyComputer\MyFiles\' //Returns TRUE (network path, without file name)
 +
 +\\ 
 +=====See also=====
 +  * [[syntax:functions:directory|Directory(full_path)]]
  
syntax/functions/ispathrooted.txt · Last modified: 2021/08/29 01:07 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki