view tango/example/conduits/filepathname.d @ 223:5ffca623b5df trunk

[svn r239] also use indirect modifier for update constraints
author ChristianK
date Fri, 06 Jun 2008 21:51:40 +0200
parents 1700239cab2e
children
line wrap: on
line source

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;
}