Remove filename from path
monarch_dodra via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Sep 24 03:22:33 PDT 2014
On Wednesday, 24 September 2014 at 10:11:04 UTC, Suliman wrote:
> What is the best way to remove file name from full path?
>
> string path = thisExePath()
Seems like "dirName" in std.path is a good candidate ;)
http://dlang.org/phobos/std_path.html#.dirName
You'll find many other path manipulation functions there.
More information about the Digitalmars-d-learn
mailing list