aboutsummaryrefslogtreecommitdiff
path: root/libphobos/src/std/path.d
diff options
context:
space:
mode:
Diffstat (limited to 'libphobos/src/std/path.d')
-rw-r--r--libphobos/src/std/path.d8
1 files changed, 7 insertions, 1 deletions
diff --git a/libphobos/src/std/path.d b/libphobos/src/std/path.d
index 449235a..a45865a 100644
--- a/libphobos/src/std/path.d
+++ b/libphobos/src/std/path.d
@@ -2732,6 +2732,9 @@ else version (Posix)
The function allocates memory if and only if it gets to the third stage
of this algorithm.
+ Note that `absolutePath` will not normalize `..` segments.
+ Use `buildNormalizedPath(absolutePath(path))` if that is desired.
+
Params:
path = the relative path to transform
base = the base directory of the relative path
@@ -2815,6 +2818,9 @@ string absolutePath(return scope const string path, lazy string base = getcwd())
which allocates memory.)
)
+ Note that `asAbsolutePath` will not normalize `..` segments.
+ Use `asNormalizedPath(asAbsolutePath(path))` if that is desired.
+
Params:
path = the relative path to transform
@@ -3391,7 +3397,7 @@ do
else
{
C[] pattmp;
- foreach (ref pi; 0 .. pattern.length)
+ for (size_t pi = 0; pi < pattern.length; pi++)
{
const pc = pattern[pi];
switch (pc)