Sha256: d839eb9c4a6effb90e2fc3a1dd3207c111cd0bea9d19c405e77cb770687b75cb
Contents?: true
Size: 554 Bytes
Versions: 6
Compression:
Stored size: 554 Bytes
Contents
# frozen_string_literal: true module FakeFtp module ServerCommands class Rnfr def run(ctx, rename_from = '', *) return '501 Send path name.' if rename_from.nil? || rename_from.empty? ctx.command_state[:rename_from] = if ctx.absolute? ctx.abspath(rename_from) else rename_from end '350 Send RNTO to complete rename.' end end end end
Version data entries
6 entries across 6 versions & 2 rubygems