2005-12-17 06:46:23 +00:00
|
|
|
#!/usr/bin/env ruby
|
2005-04-03 23:13:16 +00:00
|
|
|
|
|
|
|
module Rex
|
|
|
|
module Post
|
|
|
|
|
2005-11-15 05:22:13 +00:00
|
|
|
###
|
|
|
|
#
|
|
|
|
# This class wraps the behavior of the Ruby Dir class against a remote entity.
|
|
|
|
# Refer to the Ruby documentation for expected behavior.
|
|
|
|
#
|
|
|
|
###
|
2005-04-03 23:13:16 +00:00
|
|
|
class Dir
|
|
|
|
|
|
|
|
def Dir.entries(name)
|
2005-04-04 01:33:26 +00:00
|
|
|
raise NotImplementedError
|
2005-04-03 23:13:16 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def Dir.foreach(name, &block)
|
|
|
|
entries(name).each(&block)
|
|
|
|
end
|
2005-04-11 19:15:36 +00:00
|
|
|
|
|
|
|
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
|
2005-04-03 23:13:16 +00:00
|
|
|
end
|
|
|
|
|
2008-10-19 21:03:39 +00:00
|
|
|
end; end # Post/Rex
|