Table of Contents

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

ArgumentTypeDescription
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