Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3361

Show
Ignore:
Timestamp:
03/15/08 15:32:33 (9 months ago)
Author:
kris
Message:

fixed #969 :: Environment.exePath output has 2 slash lines before filename

Thanks, adel

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/io/FileSystem.d

    r3269 r3361  
    158158                                if (len) 
    159159                                   { 
    160                                    dir[len-1] = '\\';                                    
     160                                   dir[len-1] = '/';                                    
    161161                                   path = dir; 
    162162                                   } 
     
    177177                                   { 
    178178                                   path = dir[0..i]; 
    179                                    path[$-1] = '\\'; 
     179                                   path[$-1] = '/'; 
    180180                                   } 
    181181                                else 
     
    261261        foo (path);  
    262262 
    263         path.set (r"\x\y\.file"); 
     263        path.set (r"/x/y/.file"); 
    264264        foo (path);  
    265265 
     
    271271        foo(path); 
    272272 
    273         path.set (r"arf\test"); 
     273        path.set (r"arf/test"); 
    274274        foo(path); 
    275275        FileSystem.toAbsolute(path);