On 8/20/12, [email protected] <[email protected]> wrote:
> There is no such function.
Thanks for the quick response.
I ended up with this:
function IsRootPath(APath: String): Boolean;
//crude function, it maybe needs support for UNC drives
var
D: String;
Len: Integer;
begin
D := ExtractFileDrive(APath);
Len := Length(D);
System.Delete(APath, 1, Len);
Result := (Length(APath) = 1) and (APath[1] in AllowDirectorySeparators);
end;
Bart
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal