Files
metasploit-gs/lib/rex/post/dir.rb
T
Ramon de C Valle f124597a56 Code cleanups
git-svn-id: file:///home/svn/framework3/trunk@5773 4d416f70-5f16-0410-b530-b9f4589650da
2008-10-19 21:03:39 +00:00

51 lines
730 B
Ruby

#!/usr/bin/env ruby
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)
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