 |
Changeset 3357
- 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
| r3354 |
r3357 |
|
| 11 | 11 | important: |
|---|
| 12 | 12 | 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 |
|---|
| 14 | 14 | you in the spam box. |
|---|
| 15 | 15 | All rights requested and license will be made individualy and that |
|---|
| … | … | |
| 21 | 21 | module tango.io.vfs.FtpFolder; |
|---|
| 22 | 22 | |
|---|
| 23 | | ///I edited FtpClient, FtpTelnet, SocketConduit |
|---|
| 24 | 23 | private import tango.io.vfs.model.Vfs; |
|---|
| 25 | 24 | |
|---|
| … | … | |
| 55 | 54 | ***********************************************************************/ |
|---|
| 56 | 55 | |
|---|
| 57 | | public this (FtpFolder fol) |
|---|
| | 56 | package this (FtpFolder fol) |
|---|
| 58 | 57 | { |
|---|
| 59 | 58 | _name = fol._name.dup; |
|---|
| … | … | |
| 299 | 298 | populateFolders(false); |
|---|
| 300 | 299 | } |
|---|
| | 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 | } |
|---|
| 301 | 311 | /*********************************************************************** |
|---|
| 302 | 312 | |
|---|
| … | … | |
| 712 | 722 | } |
|---|
| 713 | 723 | |
|---|
| 714 | | |
|---|
| 715 | 724 | /******************************************************************************* |
|---|
| 716 | 725 | |
|---|
| … | … | |
| 737 | 746 | } |
|---|
| 738 | 747 | 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); |
|---|
| 739 | 758 | } |
|---|
| 740 | 759 | |
|---|
| … | … | |
| 836 | 855 | } |
|---|
| 837 | 856 | |
|---|
| 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); |
|---|
| 841 | 870 | } |
|---|
| 842 | 871 | |
|---|
Download in other formats:
|
 |
 |
|
 |
Copyright © 2006-2008 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic