-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathfile_test.rb
119 lines (96 loc) · 1.87 KB
/
file_test.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
module FileTest
def blockdev?(path)
File.blockdev? path
end
module_function :blockdev?
def chardev?(path)
File.chardev? path
end
module_function :chardev?
def directory?(path)
File.directory? path
end
module_function :directory?
def executable?(path)
File.executable? path
end
module_function :executable?
def executable_real?(path)
File.executable_real? path
end
module_function :executable_real?
def exist?(path)
File.exist? path
end
module_function :exist?
alias_method :exists?, :exist?
module_function :exists?
def file?(path)
File.file? path
end
module_function :file?
def grpowned?(path)
File.grpowned? path
end
module_function :grpowned?
def identical?(a, b)
File.identical? a, b
end
module_function :identical?
def owned?(path)
File.owned? path
end
module_function :owned?
def pipe?(path)
File.pipe? path
end
module_function :pipe?
def readable?(path)
File.readable? path
end
module_function :readable?
def readable_real?(path)
File.readable_real? path
end
module_function :readable_real?
def setgid?(path)
File.setgid? path
end
module_function :setgid?
def setuid?(path)
File.setuid? path
end
module_function :setuid?
def size(path)
File.size path
end
module_function :size
def size?(path)
File.size? path
end
module_function :size?
def socket?(path)
File.socket? path
end
module_function :socket?
def sticky?(path)
File.sticky? path
end
module_function :sticky?
def symlink?(path)
File.symlink? path
end
module_function :symlink?
def writable?(path)
File.writable? path
end
module_function :writable?
def writable_real?(path)
File.writable_real? path
end
module_function :writable_real?
def zero?(path)
File.zero? path
end
module_function :zero?
end