if ($renew_id) { my $string = $ftp_dir; $string =~ s/\/.+$//; print $string; }