-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FTP API enhancements #140
Labels
Comments
Should the old methods be removed instantly (breaking BC) or should friebe, Sun, 14 Oct 2007 19:26:33 +0200 |
Decided to add methods from old API as deprecated methods. They will friebe, Mon, 15 Oct 2007 22:02:46 +0200 |
thekid
added a commit
to xp-framework/ftp
that referenced
this issue
Sep 26, 2021
The deprecated methods were removed now after almost 14 years - better late than never 😉
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Scope of Change
The peer.ftp API will be enhanced in the following ways:
new class peer.ftp.FtpFile extending it.
will work using the io.streams API
Rationale
Prevent having to use raw FTP functions, make common use-cases easier.
Functionality
FtpEntry base class
At the moment, an FtpEntry represents a file, and an FtpDir (which extends
FtpEntry) represents a directory. This poses several limitations on what
can be in the FtpEntry class and makes it harder to distinguish them from
each other.
New layout:
FtpEntryList class
New methods
peer.ftp.FtpConnection:
peer.ftp.FtpEntry:
peer.ftp.FtpDir:
Examples
Checking for entry existance:
Retrieving the root directory:
Exceptions for makeDir():
Retrieving a single entry:
Downloading entries:
Uploading entries:
Retrieving all entries into an array:
Entry iteration:
Security considerations
n/a
Speed impact
n/a
Dependencies
Deprecated methods in peer.ftp.FtpConnection:
Related documents
The new API
The text was updated successfully, but these errors were encountered: