Method: ElFinderFtp::FtpAdapter#delete

Defined in:
lib/el_finder_ftp/ftp_adapter.rb

#delete(pathname) ⇒ Object



177
178
179
180
181
182
183
184
185
186
187
# File 'lib/el_finder_ftp/ftp_adapter.rb', line 177

def delete(pathname)
  ftp_context do
    ElFinderFtp::Connector.logger.debug "  \e[1;32mFTP:\e[0m    Deleting #{pathname}"
    if pathname.directory?
      rmdir(pathname.to_s)
    else
      delete(pathname.to_s)
    end
  end
  clear_cache(pathname)
end