CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/post/dir.rb
Views: 1904
1
# -*- coding: binary -*-
2
3
module Rex
4
module Post
5
6
###
7
#
8
# This class wraps the behavior of the Ruby Dir class against a remote entity.
9
# Refer to the Ruby documentation for expected behavior.
10
#
11
###
12
class Dir
13
14
def Dir.entries(name)
15
raise NotImplementedError
16
end
17
18
def Dir.foreach(name, &block)
19
entries(name).each(&block)
20
end
21
22
def Dir.chdir(path)
23
raise NotImplementedError
24
end
25
26
def Dir.mkdir(path)
27
raise NotImplementedError
28
end
29
30
def Dir.pwd
31
raise NotImplementedError
32
end
33
34
def Dir.getwd
35
raise NotImplementedError
36
end
37
38
def Dir.delete(path)
39
raise NotImplementedError
40
end
41
42
def Dir.rmdir(path)
43
raise NotImplementedError
44
end
45
46
def Dir.unlink(path)
47
raise NotImplementedError
48
end
49
end
50
51
end; end # Post/Rex
52
53