You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ftp.rb
    path of file: ./repos/backup/lib/backup/storage
    
    the code of the file until where you have to start completion: require "net/ftp"

module Backup
  module Storage
    class FTP < Base
      include Storage::Cycler

      ##
      # Server credentials
     
    
      def create_remote_path(ftp)
        path_parts = []
        remote_path.split("/").each do |path_part|
          path_parts << path_part
          begin
            ftp.mkdir(path_parts.join("/"))
          rescue Net::FTPPermError; end
        end
      end