JCL Help:PathIsChild

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Checks whether Path is a child of Base.


Pascal

 function PathIsChild(const Path: string; const Base: string): Boolean;


Parameters

Parameters Description
const Path: string The path to test.
const Base: string The base path to compare path against.


Return Value

If Path is a child of Base the function returns True, otherwise it returns False.


Description

The PathIsChild routine determines whether the directory specified by Path is a child directory, either immediate or several levels deep, of the specified Base path. For example, 'c:winntsystem32' is a child of 'c:winnt'.


See Also

PathIsDiskDevice PathIsUnc


About

Unit

JclFileUtils


Donator

Anthony Steele


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page