#!/usr/bin/env ruby
# -*- coding: binary -*-
module Rex
module Post
###
#
# This class wraps the behavior of the Ruby Dir class against a remote entity.
# Refer to the Ruby documentation for expected behavior.
class Dir
def Dir.entries(name)
raise NotImplementedError
end
def Dir.foreach(name, &block)
entries(name).each(&block)
def Dir.chdir(path)
def Dir.mkdir(path)
def Dir.pwd
def Dir.getwd
def Dir.delete(path)
def Dir.rmdir(path)
def Dir.unlink(path)
end; end # Post/Rex