Sha256: 599825e60f917eea5ae43445e9ef1cf9b9a50299515c918cc4f30063e9ce99c1
Contents?: true
Size: 468 Bytes
Versions: 7
Compression:
Stored size: 468 Bytes
Contents
# frozen_string_literal: true require_relative 'command_handler' module Ftpd class CmdDele < CommandHandler def cmd_dele(argument) ensure_logged_in ensure_file_system_supports :delete path = argument error "Path required", 501 unless path path = File.expand_path(path, name_prefix) ensure_accessible path ensure_exists path file_system.delete path reply "250 DELE command successful" end end end
Version data entries
7 entries across 7 versions & 1 rubygems