Path.baseName

Returns base name of current path

struct Path
const
string
baseName
()

Examples

import dshould;
Path("foo").baseName.should.equal("foo");
Path("foo", "moo").baseName.should.equal("moo");
Path("foo", "moo", "test.txt").baseName.should.equal("test.txt");

Meta