mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 11:23:14 +01:00
Initial commit after moving to Tango instead of Phobos. Lots of bugfixes... This build is not suitable for most things.
12 lines
376 B
D
12 lines
376 B
D
import tango.io.Console;
|
|
|
|
import tango.io.FilePath;
|
|
|
|
void main(){
|
|
Cout ((new FilePath(r"d:\path\foo.bat")).name).newline;
|
|
Cout ((new FilePath(r"d:\path.two\bar")).name).newline;
|
|
Cout ((new FilePath("/home/user.name/bar.")).name).newline;
|
|
Cout ((new FilePath(r"d:\path.two\bar")).name).newline;
|
|
Cout ((new FilePath("/home/user/.resource")).name).newline;
|
|
}
|