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

Changeset 3357

Show
Ignore:
Timestamp:
03/15/08 07:18:50 (9 months ago)
Author:
lmartin92
Message:

Placed constructors for every class excpeting the FtpFile?, which will be fixed later. More comments and descriptions/examples/testing needed. Some classes need reorganization so that methods that are alike are grouped. Will work on this further

Files:

Legend:

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

    r3354 r3357  
    1111        important: 
    1212                More rights and additional changes to the license can be requested 
    13             at lmartin92@inbox.com as long as my spam manager does not drop 
     13            at lestermartin92@gmail.com as long as my spam manager does not drop 
    1414            you in the spam box. 
    1515                All rights requested and license will be made individualy and that 
     
    2121module tango.io.vfs.FtpFolder; 
    2222 
    23 ///I edited FtpClient, FtpTelnet, SocketConduit 
    2423private import tango.io.vfs.model.Vfs; 
    2524 
     
    5554    ***********************************************************************/ 
    5655 
    57     public this (FtpFolder fol) 
     56    package this (FtpFolder fol) 
    5857    { 
    5958        _name = fol._name.dup; 
     
    299298        populateFolders(false); 
    300299    } 
     300     
     301    public this(char[] server, char[] path = "", char[] username = "anonymous", char[] password = "anonymous@anonymous", uint port = 21) 
     302    in 
     303    { 
     304        assert((server != null || server != "")); 
     305    } 
     306    body 
     307    { 
     308        _primaryFolders ~= new FtpFolder(server, path, username, password, port); 
     309        populateFolders(false); 
     310    } 
    301311    /*********************************************************************** 
    302312 
     
    712722} 
    713723 
    714  
    715724/******************************************************************************* 
    716725 
     
    737746        } 
    738747        populateFiles(); 
     748    } 
     749     
     750    public this(char[] server, char[] path = "", char[] username = "anonymous", char[] password = "anonymous@anonymous", uint port = 21) 
     751    in 
     752    { 
     753        assert((server != null || server != "")); 
     754    } 
     755    body 
     756    { 
     757        _folders ~= new FtpFolder(server, path, username, password, port); 
    739758    } 
    740759 
     
    836855    } 
    837856 
    838     public this(VfsFolder fol, char[] path) 
    839     { 
    840         this(cast(FtpFolder) fol, path); 
     857    public this(VfsFolder fol) 
     858    { 
     859        this(cast(FtpFolder) fol, ""); 
     860    } 
     861     
     862    public this(char[] server, char[] path = "", char[] username = "anonymous", char[] password = "anonymous@anonymous", uint port = 21) 
     863    in 
     864    { 
     865        assert((server != null || server != "")); 
     866    } 
     867    body 
     868    { 
     869        _folder = new FtpFolder(server, path, username, password, port); 
    841870    } 
    842871