mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 20:39:15 +02:00
Docs: LazUtils/lazfileutils. Updates content in AppendPathDelim topic to describe
how Windows device identifiers are handled in the routine.
(cherry picked from commit d95cdc433a
)
This commit is contained in:
parent
7d63af5f5f
commit
588e49b68e
@ -1634,23 +1634,64 @@ needed.
|
|||||||
|
|
||||||
<element name="AppendPathDelim">
|
<element name="AppendPathDelim">
|
||||||
<short>
|
<short>
|
||||||
Adds a trailing path delimiter when needed.
|
Adds a trailing path delimiter to the specified path (when needed).
|
||||||
</short>
|
</short>
|
||||||
<descr>
|
<descr>
|
||||||
<p>
|
<p>
|
||||||
<var>AppendPathDelim</var> is a <var>String</var> function used to ensure
|
<var>AppendPathDelim</var> is a <var>String</var> function used to ensure that
|
||||||
that a trailing path delimiter is included in the specified Path. The return
|
a trailing path delimiter is included in the specified <var>Path</var>.
|
||||||
value includes the value in Path and the trailing path delimiter (when
|
AppendPathDelim adds the platform-specific character in PathDelim to the end of
|
||||||
needed).
|
Path if it is not an empty string, and does not already end with one of the
|
||||||
|
values in AllowDirectorySeparators.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
The return value contains the path with the added trailing path delimiter
|
||||||
|
character, or the unmodified value in Path if a path delimiter was not added in
|
||||||
|
the routine.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
AppendPathDelim does not perform any type of resolution, expansion, or
|
||||||
|
validation of the value passed in Path. Use routines like ExpandFileName(),
|
||||||
|
DirectoryExists(), or FileExists() to perform these actions for a given path
|
||||||
|
value. For UTF-8-enabled paths use ExpandFileNameUTF8(), FileExistsUTF8(), or
|
||||||
|
DirectoryExistsUTF8().
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Use ChompPathDelim to remove a trailing path delimiter from a specified path.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<b>Windows</b>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Please note that a value like 'C:' in Path results in 'C:\' in the return
|
||||||
|
value. AppendPathDelim does <b>not</b> access the disk device to determine the
|
||||||
|
per-device current directory; it simply appends the trailing path delimiter to
|
||||||
|
the return value.
|
||||||
</p>
|
</p>
|
||||||
</descr>
|
</descr>
|
||||||
<seealso/>
|
<seealso>
|
||||||
|
<link id="ChompPathDelim"/>
|
||||||
|
<link id="DirectoryExistsUTF8"/>
|
||||||
|
<link id="ExpandFileNameUTF8"/>
|
||||||
|
<link id="FileExistsUTF8"/>
|
||||||
|
<link id="#rtl.sysutils.DirectoryExists">DirectoryExists</link>
|
||||||
|
<link id="#rtl.sysutils.ExpandFileName">ExpandFileName</link>
|
||||||
|
<link id="#rtl.sysutils.ExtractFilePath">ExtractFilePath</link>
|
||||||
|
<link id="#rtl.sysutils.FileExists">FileExists</link>
|
||||||
|
<link id="#rtl.sysutils.PathDelim">PathDelim</link>
|
||||||
|
<link id="#rtl.system.DirectorySeparator">DirectorySeparator</link>
|
||||||
|
<link id="#rtl.system.AllowDirectorySeparators">AllowDirectorySeparators</link>
|
||||||
|
</seealso>
|
||||||
</element>
|
</element>
|
||||||
<element name="AppendPathDelim.Result">
|
<element name="AppendPathDelim.Result">
|
||||||
<short>Path value with a trailing path delimiter.</short>
|
<short>
|
||||||
|
A path value which includes a trailing path delimiter.
|
||||||
|
</short>
|
||||||
</element>
|
</element>
|
||||||
<element name="AppendPathDelim.Path">
|
<element name="AppendPathDelim.Path">
|
||||||
<short>Path value to examine.</short>
|
<short>
|
||||||
|
Path value examined in the routine.
|
||||||
|
</short>
|
||||||
</element>
|
</element>
|
||||||
|
|
||||||
<element name="ChompPathDelim">
|
<element name="ChompPathDelim">
|
||||||
|
Loading…
Reference in New Issue
Block a user