Category: File function (found in the "Special" category in the EasyMorph application)
This function detects if a path to a file or folder contains a root.
Network locations are supported.
Use this function to differentiate between an absolute path versus a relative path.
Argument | Type | Description |
---|---|---|
full_path | Text | A local or network file path, with or without a file name. |
Return value type: Boolean (TRUE/FALSE)
ispathrooted('C:\Documents\myproject.morph') //Returns TRUE
ispathrooted('…\mypath\myfile.txt') //Returns FALSE
ispathrooted('\\MyComputer\MyFiles\') //Returns TRUE (network path, without file name)