Files
metasploit-gs/lib/rex/post/dir.rb
T

52 lines
765 B
Ruby
Raw Normal View History

# -*- coding: binary -*-
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
2013-08-30 16:28:33 -05:00
def Dir.entries(name)
raise NotImplementedError
end
2005-04-03 23:13:16 +00:00
2013-08-30 16:28:33 -05:00
def Dir.foreach(name, &block)
entries(name).each(&block)
end
2013-03-07 18:16:57 -06:00
2013-08-30 16:28:33 -05:00
def Dir.chdir(path)
raise NotImplementedError
end
2013-03-07 18:16:57 -06:00
2013-08-30 16:28:33 -05:00
def Dir.mkdir(path)
raise NotImplementedError
end
2013-03-07 18:16:57 -06:00
2013-08-30 16:28:33 -05:00
def Dir.pwd
raise NotImplementedError
end
2013-03-07 18:16:57 -06:00
2013-08-30 16:28:33 -05:00
def Dir.getwd
raise NotImplementedError
end
2013-03-07 18:16:57 -06:00
2013-08-30 16:28:33 -05:00
def Dir.delete(path)
raise NotImplementedError
end
2013-03-07 18:16:57 -06:00
2013-08-30 16:28:33 -05:00
def Dir.rmdir(path)
raise NotImplementedError
end
2013-03-07 18:16:57 -06:00
2013-08-30 16:28:33 -05:00
def Dir.unlink(path)
raise NotImplementedError
end
2005-04-03 23:13:16 +00:00
end
2012-04-15 23:35:38 -05:00
end; end # Post/Rex