2005-04-03 23:13:16 +00:00
|
|
|
#!/usr/bin/ruby
|
|
|
|
|
|
|
|
module Rex
|
|
|
|
module Post
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
end; end # Post/Rex
|
|
|
|
|