Class: Net::SFTP::Operations::Upload

Inherits:
Object
  • Object
show all
Defined in:
lib/disloku/tasks/NetSftpTask.rb

Instance Method Summary collapse

Instance Method Details

#old_on_mkdirObject



11
# File 'lib/disloku/tasks/NetSftpTask.rb', line 11

alias old_on_mkdir on_mkdir

#on_mkdir(response) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/disloku/tasks/NetSftpTask.rb', line 12

def on_mkdir(response)
	begin
		old_on_mkdir(response)
	rescue
		if (@options[:ignoreMkdirError])
			process_next_entry
		else
			raise
		end
	end
end