Skip to content

Commit

Permalink
Merge pull request sukria#133 from nat93-dev/patch-3
Browse files Browse the repository at this point in the history
bm-upload : Fix ftp_clean_directory for FTPS
  • Loading branch information
kissifrot authored Jan 20, 2021
2 parents a287061 + 8fc9e79 commit 8b0aae8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions backup-manager-upload
Original file line number Diff line number Diff line change
Expand Up @@ -527,12 +527,8 @@ sub ftp_clean_directory($)
my ($fh, $filename) = get_tempfile('ftp-archives-XXXXXX');
my $BM_UPLOAD_FTP_SECURE = $ENV{"BM_UPLOAD_FTP_SECURE"};
my $ra_files;
if ($BM_UPLOAD_FTP_SECURE eq "true") {
$ra_files = $ftp->list();
}
else {
$ra_files = $ftp->ls();
}
$ra_files = $ftp->ls();

foreach my $file (@$ra_files) {
print $fh "$file\n";
}
Expand Down

0 comments on commit 8b0aae8

Please sign in to comment.