metasploit-framework/lib/rex/post/dir.rb

47 lines
580 B
Ruby

#!/usr/bin/ruby
module Rex
module Post
class Dir
def Dir.entries(name)
raise NotImplementedError
end
def Dir.foreach(name, &block)
entries(name).each(&block)
end
def Dir.chdir(path)
raise NotImplementedError
end
def Dir.mkdir(path)
raise NotImplementedError
end
def Dir.pwd
raise NotImplementedError
end
def Dir.getwd
raise NotImplementedError
end
def Dir.delete(path)
raise NotImplementedError
end
def Dir.rmdir(path)
raise NotImplementedError
end
def Dir.unlink(path)
raise NotImplementedError
end
end
end; end # Post/Rex