```d File("~/foo") ``` expected: correctly finds the foo, in the users home folder, reacting to ~ as bash would
Using shell expansion is not done by default for strings. Use https://dlang.org/phobos/std_path.html#expandTilde if you want expansion of the tilde.