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

Changeset 3412

Show
Ignore:
Timestamp:
04/04/08 00:28:15 (6 months ago)
Author:
kris
Message:

fixes #1014

Files:

Legend:

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

    r3408 r3412  
    7070class FilePath : PathView 
    7171{ 
    72         private FS      fs;                     // the file-system calls 
    73  
    7472        private char[]  fp;                     // filepath with trailing 0 
    7573 
     
    844842        final bool exists () 
    845843        { 
    846                 return fs.exists (cString); 
     844                return FS.exists (cString); 
    847845        } 
    848846 
     
    898896        final FilePath rename (FilePath dst) 
    899897        { 
    900                 fs.rename (cString, dst.cString); 
     898                FS.rename (cString, dst.cString); 
    901899                return this.set (dst); 
    902900        } 
     
    912910        final FilePath copy (char[] source) 
    913911        { 
    914                 fs.copy (source~'\0', cString); 
     912                FS.copy (source~'\0', cString); 
    915913                return this; 
    916914        } 
     
    924922        final ulong fileSize () 
    925923        { 
    926                 return fs.fileSize (cString); 
     924                return FS.fileSize (cString); 
    927925        } 
    928926 
     
    935933        final bool isWritable () 
    936934        { 
    937                 return fs.isWritable (cString); 
     935                return FS.isWritable (cString); 
    938936        } 
    939937 
     
    949947                    return true; 
    950948 
    951                 return fs.isFolder (cString); 
     949                return FS.isFolder (cString); 
    952950        } 
    953951 
     
    964962        final Stamps timeStamps () 
    965963        { 
    966                 return fs.timeStamps (cString); 
     964                return FS.timeStamps (cString); 
    967965        } 
    968966 
     
    977975        final FilePath copy (FilePath src) 
    978976        { 
    979                 fs.copy (src.cString, cString); 
     977                FS.copy (src.cString, cString); 
    980978                return this; 
    981979        } 
     
    989987        final FilePath remove () 
    990988        {       
    991                 fs.remove (cString); 
     989                FS.remove (cString); 
    992990                return this; 
    993991        } 
     
    10021000        final FilePath rename (char[] dst) 
    10031001        { 
    1004                 fs.rename (cString, dst~'\0'); 
     1002                FS.rename (cString, dst~'\0'); 
    10051003                return this.set (dst); 
    10061004        } 
     
    10141012        final FilePath createFile () 
    10151013        { 
    1016                 fs.createFile (cString); 
     1014                FS.createFile (cString); 
    10171015                return this; 
    10181016        } 
     
    10261024        final FilePath createFolder () 
    10271025        { 
    1028                 fs.createFolder (cString); 
     1026                FS.createFolder (cString); 
    10291027                return this; 
    10301028        } 
     
    10441042        final int opApply (int delegate(ref FileInfo) dg) 
    10451043        { 
    1046                 return fs.list (cString, dg); 
     1044                return FS.list (cString, dg); 
    10471045        } 
    10481046