-
Notifications
You must be signed in to change notification settings - Fork 899
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite file/directory existence and upload mechanisms.
The creation of intermediate directories was removed in commit 32df530 as some ftp systems will allow you to create a directory without the intermediate directories. This commit is more conservative and assumes you must create each intermediate directory one at a time. file_exists? now encapsulates issuing ftp 'NLST' with exception handling on missing file/directories. create_directory_structure will now traverse the desired directory path and create missing intermediate directories. Move the actual uploading into a private method. net/ftp methods don't support Pathnames so convert them to Strings. https://bugzilla.redhat.com/show_bug.cgi?id=1184465
- Loading branch information
Showing
1 changed file
with
24 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters