class Rex::Post::Dir
This class wraps the behavior of the Ruby Dir
class against a remote entity. Refer to the Ruby documentation for expected behavior.
Public Class Methods
chdir(path)
click to toggle source
# File lib/rex/post/dir.rb, line 21 def Dir.chdir(path) raise NotImplementedError end
delete(path)
click to toggle source
# File lib/rex/post/dir.rb, line 37 def Dir.delete(path) raise NotImplementedError end
entries(name)
click to toggle source
# File lib/rex/post/dir.rb, line 13 def Dir.entries(name) raise NotImplementedError end
foreach(name, &block)
click to toggle source
# File lib/rex/post/dir.rb, line 17 def Dir.foreach(name, &block) entries(name).each(&block) end
getwd()
click to toggle source
# File lib/rex/post/dir.rb, line 33 def Dir.getwd raise NotImplementedError end
mkdir(path)
click to toggle source
# File lib/rex/post/dir.rb, line 25 def Dir.mkdir(path) raise NotImplementedError end
pwd()
click to toggle source
# File lib/rex/post/dir.rb, line 29 def Dir.pwd raise NotImplementedError end
rmdir(path)
click to toggle source
# File lib/rex/post/dir.rb, line 41 def Dir.rmdir(path) raise NotImplementedError end
unlink(path)
click to toggle source
# File lib/rex/post/dir.rb, line 45 def Dir.unlink(path) raise NotImplementedError end