class Multiwoven::Integrations::Destination::Sftp::Client

def generate_file_path(sync_config)

def generate_file_path(sync_config)
  connection_specification = sync_config.destination.connection_specification.with_indifferent_access
  timestamp = Time.now.strftime("%Y%m%d-%H%M%S")
  format = connection_specification[:format]
  extension = if format[:compression_type] == "un_compressed"
                format[:format_type]
              else
                format[:compression_type]
              end
  file_name = "#{connection_specification[:file_name]}_#{timestamp}.#{extension}"
  File.join(connection_specification[:destination_path], file_name)
end