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

Changeset 3350

Show
Ignore:
Timestamp:
03/13/08 16:34:12 (9 months ago)
Author:
lmartin92
Message:

Finally I finished all the classes in the FtpFolder? module. I did realize however that I needed to create constructors for each class. I will work on that tomorrow.

Lester L. Martin II

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/lmartin/ftp/tango/io/vfs/FtpFolder.d

    r3347 r3350  
    819819class FtpFolderEntry : VfsFolderEntry 
    820820{ 
     821    FtpFolder _folder; 
    821822    /*********************************************************************** 
    822823 
     
    827828    package this(FtpFolder fol, char[] path) 
    828829    { 
     830        _folder = new FtpFolder(fol); 
    829831    } 
    830832 
     
    836838    VfsFolder open () 
    837839    { 
    838         return null
     840        return new FtpFolder(_folder)
    839841    } 
    840842 
     
    847849    VfsFolder create () 
    848850    { 
    849         return null; 
     851        _folder._ftp.mkdir(_folder.toString); 
     852        return new FtpFolder(_folder); 
    850853    } 
    851854 
     
    858861    bool exists () 
    859862    { 
    860         return 0; 
     863        if(2 == _folder._ftp.exist(_folder.toString)) 
     864            return true; 
     865        else 
     866            return false; 
    861867    } 
    862868}