Sha256: daffdb2a34aad91892022a74ad930861b486ed58f40fe47e53e2f4b73c6d35e4
Contents?: true
Size: 389 Bytes
Versions: 7
Compression:
Stored size: 389 Bytes
Contents
# frozen_string_literal: true require_relative 'command_handler' module Ftpd class CmdCwd < CommandHandler def cmd_cwd(argument) ensure_logged_in path = File.expand_path(argument, name_prefix) ensure_accessible path ensure_exists path ensure_directory path self.name_prefix = path pwd 250 end alias cmd_xcwd :cmd_cwd end end
Version data entries
7 entries across 7 versions & 1 rubygems