folio 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +2 -0
- data/MANIFEST +20 -5
- data/METADATA +3 -2
- data/README +5 -0
- data/doc/rdoc/classes/Enumerator.html +92 -0
- data/doc/rdoc/classes/Folio.html +12 -2
- data/doc/rdoc/classes/Folio/BlockDevice.html +4 -4
- data/doc/rdoc/classes/Folio/CharacterDevice.html +4 -4
- data/doc/rdoc/classes/Folio/Directory.html +169 -41
- data/doc/rdoc/classes/Folio/Document.html +130 -51
- data/doc/rdoc/classes/Folio/FileObject.html +318 -313
- data/doc/rdoc/classes/Folio/Pipe.html +8 -8
- data/doc/rdoc/classes/Folio/Prompt.html +261 -218
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +92 -0
- data/doc/rdoc/files/METADATA.html +7 -6
- data/doc/rdoc/files/README.html +1 -1
- data/doc/rdoc/files/lib/folio/directory_rb.html +1 -1
- data/doc/rdoc/files/lib/folio/document_rb.html +1 -1
- data/doc/rdoc/files/lib/folio/fileobject_rb.html +6 -1
- data/doc/rdoc/files/lib/folio/prompt_rb.html +1 -1
- data/doc/rdoc/files/lib/folio_rb.html +1 -1
- data/doc/rdoc/fr_class_index.html +1 -0
- data/doc/rdoc/fr_file_index.html +1 -0
- data/doc/rdoc/fr_method_index.html +126 -116
- data/doc/ri/Enumerator/cdesc-Enumerator.yaml +15 -0
- data/doc/ri/Folio/Directory/%2f-i.yaml +1 -1
- data/doc/ri/Folio/Directory/cdesc-Directory.yaml +10 -2
- data/doc/ri/Folio/Directory/chdir-i.yaml +3 -1
- data/doc/ri/Folio/Directory/chmod_r-i.yaml +2 -0
- data/doc/ri/Folio/Directory/chown_r-i.yaml +1 -1
- data/doc/ri/Folio/Directory/chroot-i.yaml +2 -0
- data/doc/ri/Folio/Directory/cp_r-i.yaml +1 -1
- data/doc/ri/Folio/Directory/directories-i.yaml +12 -0
- data/doc/ri/Folio/Directory/directory_entries-i.yaml +12 -0
- data/doc/ri/Folio/Directory/document_entries-i.yaml +12 -0
- data/doc/ri/Folio/Directory/documents-i.yaml +12 -0
- data/doc/ri/Folio/Directory/entries-i.yaml +1 -1
- data/doc/ri/Folio/Directory/files-i.yaml +12 -0
- data/doc/ri/Folio/Directory/foreach-i.yaml +2 -0
- data/doc/ri/Folio/Directory/rm_r-i.yaml +2 -0
- data/doc/ri/Folio/Directory/rm_rf-i.yaml +2 -0
- data/doc/ri/Folio/Directory/rmdir-i.yaml +2 -0
- data/doc/ri/Folio/Document/%3c%3c-i.yaml +12 -0
- data/doc/ri/Folio/{Prompt/paths-i.yaml → Document/%3c-i.yaml} +4 -4
- data/doc/ri/Folio/Document/append-i.yaml +13 -0
- data/doc/ri/Folio/Document/cdesc-Document.yaml +10 -2
- data/doc/ri/Folio/{Directory/paths-i.yaml → Document/document%3f-i.yaml} +3 -3
- data/doc/ri/Folio/Document/write-i.yaml +13 -0
- data/doc/ri/Folio/FileObject/cdesc-FileObject.yaml +2 -2
- data/doc/ri/Folio/FileObject/{file%3f-i.yaml → document%3f-i.yaml} +4 -2
- data/doc/ri/Folio/Prompt/{pwd-i.yaml → %5b%5d-i.yaml} +5 -3
- data/doc/ri/Folio/Prompt/cdesc-Prompt.yaml +11 -5
- data/doc/ri/Folio/Prompt/directories-i.yaml +1 -1
- data/doc/ri/Folio/Prompt/directory_entries-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/document_entries-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/documents-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/entries-i.yaml +1 -1
- data/doc/ri/Folio/Prompt/file-i.yaml +4 -3
- data/doc/ri/Folio/Prompt/files-i.yaml +1 -1
- data/doc/ri/Folio/Prompt/fileutils-i.yaml +2 -0
- data/doc/ri/Folio/Prompt/mode-i.yaml +1 -1
- data/doc/ri/created.rid +1 -1
- data/lib/folio.rb +7 -50
- data/lib/folio/directory.rb +55 -10
- data/lib/folio/document.rb +14 -1
- data/lib/folio/fileobject.rb +9 -1
- data/lib/folio/prompt.rb +65 -25
- metadata +25 -9
- data/doc/ri/Folio/Document/file%3f-i.yaml +0 -10
@@ -82,16 +82,20 @@ FileObject
|
|
82
82
|
|
83
83
|
<div class="sectiontitle">Methods</div>
|
84
84
|
<ul>
|
85
|
-
<li><a href="#
|
86
|
-
<li><a href="#
|
87
|
-
<li><a href="#
|
88
|
-
<li><a href="#
|
89
|
-
<li><a href="#
|
90
|
-
<li><a href="#M000137">
|
91
|
-
<li><a href="#
|
92
|
-
<li><a href="#
|
93
|
-
<li><a href="#
|
94
|
-
<li><a href="#
|
85
|
+
<li><a href="#M000146"><</a></li>
|
86
|
+
<li><a href="#M000148"><<</a></li>
|
87
|
+
<li><a href="#M000147">append</a></li>
|
88
|
+
<li><a href="#M000142">delete</a></li>
|
89
|
+
<li><a href="#M000136">document?</a></li>
|
90
|
+
<li><a href="#M000137">executable?</a></li>
|
91
|
+
<li><a href="#M000138">executable_real?</a></li>
|
92
|
+
<li><a href="#M000135">intialize</a></li>
|
93
|
+
<li><a href="#M000143">open</a></li>
|
94
|
+
<li><a href="#M000139">read</a></li>
|
95
|
+
<li><a href="#M000140">readlines</a></li>
|
96
|
+
<li><a href="#M000144">truncate</a></li>
|
97
|
+
<li><a href="#M000141">unlink</a></li>
|
98
|
+
<li><a href="#M000145">write</a></li>
|
95
99
|
</ul>
|
96
100
|
|
97
101
|
|
@@ -102,13 +106,58 @@ FileObject
|
|
102
106
|
<div class="sectiontitle">Public Instance methods</div>
|
103
107
|
<div class="method">
|
104
108
|
<div class="title">
|
105
|
-
<a name="
|
109
|
+
<a name="M000146"></a><b><</b>(string)
|
106
110
|
</div>
|
111
|
+
<div class="description">
|
112
|
+
<p>
|
113
|
+
Alias for <a href="Document.html#M000145">write</a>
|
114
|
+
</p>
|
115
|
+
</div>
|
116
|
+
</div>
|
117
|
+
<div class="method">
|
118
|
+
<div class="title">
|
119
|
+
<a name="M000148"></a><b><<</b>(string)
|
120
|
+
</div>
|
121
|
+
<div class="description">
|
122
|
+
<p>
|
123
|
+
Alias for <a href="Document.html#M000147">append</a>
|
124
|
+
</p>
|
125
|
+
</div>
|
126
|
+
</div>
|
127
|
+
<div class="method">
|
128
|
+
<div class="title">
|
129
|
+
<a name="M000147"></a><b>append</b>(string)
|
130
|
+
</div>
|
131
|
+
<div class="description">
|
132
|
+
<p>
|
133
|
+
Replace contents of file with string.
|
134
|
+
</p>
|
135
|
+
</div>
|
136
|
+
<div class="aka">
|
137
|
+
This method is also aliased as
|
138
|
+
<a href="Document.html#M000148"><<</a>
|
139
|
+
</div>
|
107
140
|
<div class="sourcecode">
|
108
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
109
|
-
<div id="
|
141
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000147_source')" id="l_M000147_source">show source</a> ]</p>
|
142
|
+
<div id="M000147_source" class="dyn-source">
|
110
143
|
<pre>
|
111
|
-
<span class="ruby-comment cmt"># File lib/folio/document.rb, line
|
144
|
+
<span class="ruby-comment cmt"># File lib/folio/document.rb, line 58</span>
|
145
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">append</span>(<span class="ruby-identifier">string</span>)
|
146
|
+
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">path</span>, <span class="ruby-value str">'a'</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">string</span>)}
|
147
|
+
<span class="ruby-keyword kw">end</span>
|
148
|
+
</pre>
|
149
|
+
</div>
|
150
|
+
</div>
|
151
|
+
</div>
|
152
|
+
<div class="method">
|
153
|
+
<div class="title">
|
154
|
+
<a name="M000142"></a><b>delete</b>()
|
155
|
+
</div>
|
156
|
+
<div class="sourcecode">
|
157
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000142_source')" id="l_M000142_source">show source</a> ]</p>
|
158
|
+
<div id="M000142_source" class="dyn-source">
|
159
|
+
<pre>
|
160
|
+
<span class="ruby-comment cmt"># File lib/folio/document.rb, line 37</span>
|
112
161
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span> ; <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">path</span>) ; <span class="ruby-keyword kw">end</span>
|
113
162
|
</pre>
|
114
163
|
</div>
|
@@ -116,53 +165,58 @@ FileObject
|
|
116
165
|
</div>
|
117
166
|
<div class="method">
|
118
167
|
<div class="title">
|
119
|
-
<a name="
|
168
|
+
<a name="M000136"></a><b>document?</b>()
|
169
|
+
</div>
|
170
|
+
<div class="description">
|
171
|
+
<p>
|
172
|
+
def file? ; true ; end
|
173
|
+
</p>
|
120
174
|
</div>
|
121
175
|
<div class="sourcecode">
|
122
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
123
|
-
<div id="
|
176
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000136_source')" id="l_M000136_source">show source</a> ]</p>
|
177
|
+
<div id="M000136_source" class="dyn-source">
|
124
178
|
<pre>
|
125
|
-
<span class="ruby-comment cmt"># File lib/folio/document.rb, line
|
126
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
179
|
+
<span class="ruby-comment cmt"># File lib/folio/document.rb, line 18</span>
|
180
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">document?</span> ; <span class="ruby-keyword kw">true</span> ; <span class="ruby-keyword kw">end</span>
|
127
181
|
</pre>
|
128
182
|
</div>
|
129
183
|
</div>
|
130
184
|
</div>
|
131
185
|
<div class="method">
|
132
186
|
<div class="title">
|
133
|
-
<a name="
|
187
|
+
<a name="M000137"></a><b>executable?</b>()
|
134
188
|
</div>
|
135
189
|
<div class="sourcecode">
|
136
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
137
|
-
<div id="
|
190
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000137_source')" id="l_M000137_source">show source</a> ]</p>
|
191
|
+
<div id="M000137_source" class="dyn-source">
|
138
192
|
<pre>
|
139
193
|
<span class="ruby-comment cmt"># File lib/folio/document.rb, line 24</span>
|
140
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
194
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">executable?</span> ; <span class="ruby-operator">::</span><span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">executable?</span>(<span class="ruby-identifier">path</span>) ; <span class="ruby-keyword kw">end</span>
|
141
195
|
</pre>
|
142
196
|
</div>
|
143
197
|
</div>
|
144
198
|
</div>
|
145
199
|
<div class="method">
|
146
200
|
<div class="title">
|
147
|
-
<a name="
|
201
|
+
<a name="M000138"></a><b>executable_real?</b>()
|
148
202
|
</div>
|
149
203
|
<div class="sourcecode">
|
150
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
151
|
-
<div id="
|
204
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000138_source')" id="l_M000138_source">show source</a> ]</p>
|
205
|
+
<div id="M000138_source" class="dyn-source">
|
152
206
|
<pre>
|
153
|
-
<span class="ruby-comment cmt"># File lib/folio/document.rb, line
|
154
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
207
|
+
<span class="ruby-comment cmt"># File lib/folio/document.rb, line 25</span>
|
208
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">executable_real?</span> ; <span class="ruby-operator">::</span><span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">executable_real?</span>(<span class="ruby-identifier">path</span>) ; <span class="ruby-keyword kw">end</span>
|
155
209
|
</pre>
|
156
210
|
</div>
|
157
211
|
</div>
|
158
212
|
</div>
|
159
213
|
<div class="method">
|
160
214
|
<div class="title">
|
161
|
-
<a name="
|
215
|
+
<a name="M000135"></a><b>intialize</b>(path)
|
162
216
|
</div>
|
163
217
|
<div class="sourcecode">
|
164
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
165
|
-
<div id="
|
218
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000135_source')" id="l_M000135_source">show source</a> ]</p>
|
219
|
+
<div id="M000135_source" class="dyn-source">
|
166
220
|
<pre>
|
167
221
|
<span class="ruby-comment cmt"># File lib/folio/document.rb, line 7</span>
|
168
222
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">intialize</span>(<span class="ruby-identifier">path</span>)
|
@@ -176,13 +230,13 @@ FileObject
|
|
176
230
|
</div>
|
177
231
|
<div class="method">
|
178
232
|
<div class="title">
|
179
|
-
<a name="
|
233
|
+
<a name="M000143"></a><b>open</b>(mode, &block)
|
180
234
|
</div>
|
181
235
|
<div class="sourcecode">
|
182
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
183
|
-
<div id="
|
236
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000143_source')" id="l_M000143_source">show source</a> ]</p>
|
237
|
+
<div id="M000143_source" class="dyn-source">
|
184
238
|
<pre>
|
185
|
-
<span class="ruby-comment cmt"># File lib/folio/document.rb, line
|
239
|
+
<span class="ruby-comment cmt"># File lib/folio/document.rb, line 43</span>
|
186
240
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span>(<span class="ruby-identifier">mode</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
187
241
|
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">mode</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
188
242
|
<span class="ruby-keyword kw">end</span>
|
@@ -192,13 +246,13 @@ FileObject
|
|
192
246
|
</div>
|
193
247
|
<div class="method">
|
194
248
|
<div class="title">
|
195
|
-
<a name="
|
249
|
+
<a name="M000139"></a><b>read</b>()
|
196
250
|
</div>
|
197
251
|
<div class="sourcecode">
|
198
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
199
|
-
<div id="
|
252
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000139_source')" id="l_M000139_source">show source</a> ]</p>
|
253
|
+
<div id="M000139_source" class="dyn-source">
|
200
254
|
<pre>
|
201
|
-
<span class="ruby-comment cmt"># File lib/folio/document.rb, line
|
255
|
+
<span class="ruby-comment cmt"># File lib/folio/document.rb, line 31</span>
|
202
256
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read</span> ; <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">path</span>) ; <span class="ruby-keyword kw">end</span>
|
203
257
|
</pre>
|
204
258
|
</div>
|
@@ -206,13 +260,13 @@ FileObject
|
|
206
260
|
</div>
|
207
261
|
<div class="method">
|
208
262
|
<div class="title">
|
209
|
-
<a name="
|
263
|
+
<a name="M000140"></a><b>readlines</b>()
|
210
264
|
</div>
|
211
265
|
<div class="sourcecode">
|
212
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
213
|
-
<div id="
|
266
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000140_source')" id="l_M000140_source">show source</a> ]</p>
|
267
|
+
<div id="M000140_source" class="dyn-source">
|
214
268
|
<pre>
|
215
|
-
<span class="ruby-comment cmt"># File lib/folio/document.rb, line
|
269
|
+
<span class="ruby-comment cmt"># File lib/folio/document.rb, line 33</span>
|
216
270
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">readlines</span> ; <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">readlines</span>(<span class="ruby-identifier">path</span>) ; <span class="ruby-keyword kw">end</span>
|
217
271
|
</pre>
|
218
272
|
</div>
|
@@ -220,13 +274,13 @@ FileObject
|
|
220
274
|
</div>
|
221
275
|
<div class="method">
|
222
276
|
<div class="title">
|
223
|
-
<a name="
|
277
|
+
<a name="M000144"></a><b>truncate</b>(size)
|
224
278
|
</div>
|
225
279
|
<div class="sourcecode">
|
226
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
227
|
-
<div id="
|
280
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000144_source')" id="l_M000144_source">show source</a> ]</p>
|
281
|
+
<div id="M000144_source" class="dyn-source">
|
228
282
|
<pre>
|
229
|
-
<span class="ruby-comment cmt"># File lib/folio/document.rb, line
|
283
|
+
<span class="ruby-comment cmt"># File lib/folio/document.rb, line 47</span>
|
230
284
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">truncate</span>(<span class="ruby-identifier">size</span>)
|
231
285
|
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">path</span>, <span class="ruby-value str">'w'</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">truncate</span>(<span class="ruby-identifier">size</span>)}
|
232
286
|
<span class="ruby-keyword kw">end</span>
|
@@ -236,7 +290,7 @@ FileObject
|
|
236
290
|
</div>
|
237
291
|
<div class="method">
|
238
292
|
<div class="title">
|
239
|
-
<a name="
|
293
|
+
<a name="M000141"></a><b>unlink</b>()
|
240
294
|
</div>
|
241
295
|
<div class="description">
|
242
296
|
<p>
|
@@ -244,15 +298,40 @@ TODO: how to handle unkinking (b/c file no longer exists)
|
|
244
298
|
</p>
|
245
299
|
</div>
|
246
300
|
<div class="sourcecode">
|
247
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
248
|
-
<div id="
|
301
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000141_source')" id="l_M000141_source">show source</a> ]</p>
|
302
|
+
<div id="M000141_source" class="dyn-source">
|
249
303
|
<pre>
|
250
|
-
<span class="ruby-comment cmt"># File lib/folio/document.rb, line
|
304
|
+
<span class="ruby-comment cmt"># File lib/folio/document.rb, line 36</span>
|
251
305
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unlink</span> ; <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">unlink</span>(<span class="ruby-identifier">path</span>) ; <span class="ruby-keyword kw">end</span>
|
252
306
|
</pre>
|
253
307
|
</div>
|
254
308
|
</div>
|
255
309
|
</div>
|
310
|
+
<div class="method">
|
311
|
+
<div class="title">
|
312
|
+
<a name="M000145"></a><b>write</b>(string)
|
313
|
+
</div>
|
314
|
+
<div class="description">
|
315
|
+
<p>
|
316
|
+
Replace contents of file with string.
|
317
|
+
</p>
|
318
|
+
</div>
|
319
|
+
<div class="aka">
|
320
|
+
This method is also aliased as
|
321
|
+
<a href="Document.html#M000146"><</a>
|
322
|
+
</div>
|
323
|
+
<div class="sourcecode">
|
324
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000145_source')" id="l_M000145_source">show source</a> ]</p>
|
325
|
+
<div id="M000145_source" class="dyn-source">
|
326
|
+
<pre>
|
327
|
+
<span class="ruby-comment cmt"># File lib/folio/document.rb, line 52</span>
|
328
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write</span>(<span class="ruby-identifier">string</span>)
|
329
|
+
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">path</span>, <span class="ruby-value str">'w'</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">string</span>)}
|
330
|
+
<span class="ruby-keyword kw">end</span>
|
331
|
+
</pre>
|
332
|
+
</div>
|
333
|
+
</div>
|
334
|
+
</div>
|
256
335
|
</div>
|
257
336
|
|
258
337
|
</div>
|
@@ -85,68 +85,68 @@ Base class for all folio objects.
|
|
85
85
|
|
86
86
|
<div class="sectiontitle">Methods</div>
|
87
87
|
<ul>
|
88
|
-
<li><a href="#
|
89
|
-
<li><a href="#
|
90
|
-
<li><a href="#
|
91
|
-
<li><a href="#
|
92
|
-
<li><a href="#
|
93
|
-
<li><a href="#
|
94
|
-
<li><a href="#
|
95
|
-
<li><a href="#
|
96
|
-
<li><a href="#
|
97
|
-
<li><a href="#
|
98
|
-
<li><a href="#
|
99
|
-
<li><a href="#
|
100
|
-
<li><a href="#
|
101
|
-
<li><a href="#
|
102
|
-
<li><a href="#
|
103
|
-
<li><a href="#
|
104
|
-
<li><a href="#
|
105
|
-
<li><a href="#
|
106
|
-
<li><a href="#
|
107
|
-
<li><a href="#
|
108
|
-
<li><a href="#
|
109
|
-
<li><a href="#
|
110
|
-
<li><a href="#
|
111
|
-
<li><a href="#
|
112
|
-
<li><a href="#
|
113
|
-
<li><a href="#
|
114
|
-
<li><a href="#
|
115
|
-
<li><a href="#
|
116
|
-
<li><a href="#
|
117
|
-
<li><a href="#
|
118
|
-
<li><a href="#
|
119
|
-
<li><a href="#
|
120
|
-
<li><a href="#
|
121
|
-
<li><a href="#
|
122
|
-
<li><a href="#
|
123
|
-
<li><a href="#
|
124
|
-
<li><a href="#
|
125
|
-
<li><a href="#
|
126
|
-
<li><a href="#
|
127
|
-
<li><a href="#
|
128
|
-
<li><a href="#
|
129
|
-
<li><a href="#
|
130
|
-
<li><a href="#
|
131
|
-
<li><a href="#
|
132
|
-
<li><a href="#
|
133
|
-
<li><a href="#
|
134
|
-
<li><a href="#
|
135
|
-
<li><a href="#
|
136
|
-
<li><a href="#
|
137
|
-
<li><a href="#
|
138
|
-
<li><a href="#
|
139
|
-
<li><a href="#
|
140
|
-
<li><a href="#
|
141
|
-
<li><a href="#
|
142
|
-
<li><a href="#
|
143
|
-
<li><a href="#
|
144
|
-
<li><a href="#
|
145
|
-
<li><a href="#
|
146
|
-
<li><a href="#
|
147
|
-
<li><a href="#
|
148
|
-
<li><a href="#
|
149
|
-
<li><a href="#
|
88
|
+
<li><a href="#M000133"><=></a></li>
|
89
|
+
<li><a href="#M000134">==</a></li>
|
90
|
+
<li><a href="#M000073">[]</a></li>
|
91
|
+
<li><a href="#M000108">atime</a></li>
|
92
|
+
<li><a href="#M000124">basename</a></li>
|
93
|
+
<li><a href="#M000104">blockdev?</a></li>
|
94
|
+
<li><a href="#M000105">chardev?</a></li>
|
95
|
+
<li><a href="#M000093">chmod</a></li>
|
96
|
+
<li><a href="#M000094">chown</a></li>
|
97
|
+
<li><a href="#M000096">cp</a></li>
|
98
|
+
<li><a href="#M000109">ctime</a></li>
|
99
|
+
<li><a href="#M000088">delete</a></li>
|
100
|
+
<li><a href="#M000091">delete_force</a></li>
|
101
|
+
<li><a href="#M000103">directory?</a></li>
|
102
|
+
<li><a href="#M000125">dirname</a></li>
|
103
|
+
<li><a href="#M000102">document?</a></li>
|
104
|
+
<li><a href="#M000075">exist?</a></li>
|
105
|
+
<li><a href="#M000076">exists?</a></li>
|
106
|
+
<li><a href="#M000126">extname</a></li>
|
107
|
+
<li><a href="#M000129">fnmatch</a></li>
|
108
|
+
<li><a href="#M000130">fnmatch?</a></li>
|
109
|
+
<li><a href="#M000110">grpowned?</a></li>
|
110
|
+
<li><a href="#M000111">identical?</a></li>
|
111
|
+
<li><a href="#M000131">inspect</a></li>
|
112
|
+
<li><a href="#M000097">install</a></li>
|
113
|
+
<li><a href="#M000077">link</a></li>
|
114
|
+
<li><a href="#M000079">link_force</a></li>
|
115
|
+
<li><a href="#M000078">ln</a></li>
|
116
|
+
<li><a href="#M000080">ln_f</a></li>
|
117
|
+
<li><a href="#M000082">ln_s</a></li>
|
118
|
+
<li><a href="#M000084">ln_sf</a></li>
|
119
|
+
<li><a href="#M000112">mtime</a></li>
|
120
|
+
<li><a href="#M000086">mv</a></li>
|
121
|
+
<li><a href="#M000074">new</a></li>
|
122
|
+
<li><a href="#M000113">owned?</a></li>
|
123
|
+
<li><a href="#M000107">pipe?</a></li>
|
124
|
+
<li><a href="#M000114">readable?</a></li>
|
125
|
+
<li><a href="#M000115">readable_real?</a></li>
|
126
|
+
<li><a href="#M000128">relative</a></li>
|
127
|
+
<li><a href="#M000085">rename</a></li>
|
128
|
+
<li><a href="#M000100">restat</a></li>
|
129
|
+
<li><a href="#M000089">rm</a></li>
|
130
|
+
<li><a href="#M000092">rm_f</a></li>
|
131
|
+
<li><a href="#M000116">setgid?</a></li>
|
132
|
+
<li><a href="#M000117">setuid?</a></li>
|
133
|
+
<li><a href="#M000118">size</a></li>
|
134
|
+
<li><a href="#M000119">size?</a></li>
|
135
|
+
<li><a href="#M000106">socket?</a></li>
|
136
|
+
<li><a href="#M000127">split</a></li>
|
137
|
+
<li><a href="#M000099">stat</a></li>
|
138
|
+
<li><a href="#M000101">stat!</a></li>
|
139
|
+
<li><a href="#M000120">sticky?</a></li>
|
140
|
+
<li><a href="#M000081">symlink</a></li>
|
141
|
+
<li><a href="#M000083">symlink_force</a></li>
|
142
|
+
<li><a href="#M000132">to_s</a></li>
|
143
|
+
<li><a href="#M000098">touch</a></li>
|
144
|
+
<li><a href="#M000087">unlink</a></li>
|
145
|
+
<li><a href="#M000090">unlink_force</a></li>
|
146
|
+
<li><a href="#M000095">utime</a></li>
|
147
|
+
<li><a href="#M000121">writable?</a></li>
|
148
|
+
<li><a href="#M000122">writable_real?</a></li>
|
149
|
+
<li><a href="#M000123">zero?</a></li>
|
150
150
|
</ul>
|
151
151
|
|
152
152
|
|
@@ -182,7 +182,7 @@ Base class for all folio objects.
|
|
182
182
|
<div class="sectiontitle">Public Class methods</div>
|
183
183
|
<div class="method">
|
184
184
|
<div class="title">
|
185
|
-
<a name="
|
185
|
+
<a name="M000073"></a><b>[]</b>(*path)
|
186
186
|
</div>
|
187
187
|
<div class="description">
|
188
188
|
<p>
|
@@ -190,10 +190,10 @@ Factory method.
|
|
190
190
|
</p>
|
191
191
|
</div>
|
192
192
|
<div class="sourcecode">
|
193
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
194
|
-
<div id="
|
193
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000073_source')" id="l_M000073_source">show source</a> ]</p>
|
194
|
+
<div id="M000073_source" class="dyn-source">
|
195
195
|
<pre>
|
196
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
196
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 20</span>
|
197
197
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-operator">[]</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">path</span>)
|
198
198
|
<span class="ruby-identifier">path</span> = <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">path</span>)
|
199
199
|
|
@@ -224,13 +224,13 @@ Factory method.
|
|
224
224
|
</div>
|
225
225
|
<div class="method">
|
226
226
|
<div class="title">
|
227
|
-
<a name="
|
227
|
+
<a name="M000074"></a><b>new</b>(path)
|
228
228
|
</div>
|
229
229
|
<div class="sourcecode">
|
230
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
231
|
-
<div id="
|
230
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000074_source')" id="l_M000074_source">show source</a> ]</p>
|
231
|
+
<div id="M000074_source" class="dyn-source">
|
232
232
|
<pre>
|
233
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
233
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 47</span>
|
234
234
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">path</span>)
|
235
235
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">FileNotFound</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">path</span>)
|
236
236
|
<span class="ruby-ivar">@relpath</span> = <span class="ruby-identifier">path</span>
|
@@ -243,13 +243,13 @@ Factory method.
|
|
243
243
|
<div class="sectiontitle">Public Instance methods</div>
|
244
244
|
<div class="method">
|
245
245
|
<div class="title">
|
246
|
-
<a name="
|
246
|
+
<a name="M000133"></a><b><=></b>(other)
|
247
247
|
</div>
|
248
248
|
<div class="sourcecode">
|
249
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
250
|
-
<div id="
|
249
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000133_source')" id="l_M000133_source">show source</a> ]</p>
|
250
|
+
<div id="M000133_source" class="dyn-source">
|
251
251
|
<pre>
|
252
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
252
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 233</span>
|
253
253
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><=></span>(<span class="ruby-identifier">other</span>)
|
254
254
|
<span class="ruby-identifier">path</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">to_s</span>
|
255
255
|
<span class="ruby-keyword kw">end</span>
|
@@ -259,13 +259,13 @@ Factory method.
|
|
259
259
|
</div>
|
260
260
|
<div class="method">
|
261
261
|
<div class="title">
|
262
|
-
<a name="
|
262
|
+
<a name="M000134"></a><b>==</b>(other)
|
263
263
|
</div>
|
264
264
|
<div class="sourcecode">
|
265
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
266
|
-
<div id="
|
265
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000134_source')" id="l_M000134_source">show source</a> ]</p>
|
266
|
+
<div id="M000134_source" class="dyn-source">
|
267
267
|
<pre>
|
268
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
268
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 237</span>
|
269
269
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">other</span>)
|
270
270
|
<span class="ruby-identifier">path</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">path</span>
|
271
271
|
<span class="ruby-keyword kw">end</span>
|
@@ -275,13 +275,13 @@ Factory method.
|
|
275
275
|
</div>
|
276
276
|
<div class="method">
|
277
277
|
<div class="title">
|
278
|
-
<a name="
|
278
|
+
<a name="M000108"></a><b>atime</b>()
|
279
279
|
</div>
|
280
280
|
<div class="sourcecode">
|
281
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
282
|
-
<div id="
|
281
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000108_source')" id="l_M000108_source">show source</a> ]</p>
|
282
|
+
<div id="M000108_source" class="dyn-source">
|
283
283
|
<pre>
|
284
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
284
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 167</span>
|
285
285
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">atime</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">atime</span> ; <span class="ruby-keyword kw">end</span>
|
286
286
|
</pre>
|
287
287
|
</div>
|
@@ -289,13 +289,13 @@ Factory method.
|
|
289
289
|
</div>
|
290
290
|
<div class="method">
|
291
291
|
<div class="title">
|
292
|
-
<a name="
|
292
|
+
<a name="M000124"></a><b>basename</b>()
|
293
293
|
</div>
|
294
294
|
<div class="sourcecode">
|
295
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
296
|
-
<div id="
|
295
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000124_source')" id="l_M000124_source">show source</a> ]</p>
|
296
|
+
<div id="M000124_source" class="dyn-source">
|
297
297
|
<pre>
|
298
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
298
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 188</span>
|
299
299
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">basename</span> ; <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">path</span>) ; <span class="ruby-keyword kw">end</span>
|
300
300
|
</pre>
|
301
301
|
</div>
|
@@ -303,13 +303,13 @@ Factory method.
|
|
303
303
|
</div>
|
304
304
|
<div class="method">
|
305
305
|
<div class="title">
|
306
|
-
<a name="
|
306
|
+
<a name="M000104"></a><b>blockdev?</b>()
|
307
307
|
</div>
|
308
308
|
<div class="sourcecode">
|
309
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
310
|
-
<div id="
|
309
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000104_source')" id="l_M000104_source">show source</a> ]</p>
|
310
|
+
<div id="M000104_source" class="dyn-source">
|
311
311
|
<pre>
|
312
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
312
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 162</span>
|
313
313
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blockdev?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">blockdev?</span> ; <span class="ruby-keyword kw">end</span>
|
314
314
|
</pre>
|
315
315
|
</div>
|
@@ -317,13 +317,13 @@ Factory method.
|
|
317
317
|
</div>
|
318
318
|
<div class="method">
|
319
319
|
<div class="title">
|
320
|
-
<a name="
|
320
|
+
<a name="M000105"></a><b>chardev?</b>()
|
321
321
|
</div>
|
322
322
|
<div class="sourcecode">
|
323
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
324
|
-
<div id="
|
323
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">show source</a> ]</p>
|
324
|
+
<div id="M000105_source" class="dyn-source">
|
325
325
|
<pre>
|
326
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
326
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 163</span>
|
327
327
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chardev?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">chardev?</span> ; <span class="ruby-keyword kw">end</span>
|
328
328
|
</pre>
|
329
329
|
</div>
|
@@ -331,13 +331,13 @@ Factory method.
|
|
331
331
|
</div>
|
332
332
|
<div class="method">
|
333
333
|
<div class="title">
|
334
|
-
<a name="
|
334
|
+
<a name="M000093"></a><b>chmod</b>(mode)
|
335
335
|
</div>
|
336
336
|
<div class="sourcecode">
|
337
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
338
|
-
<div id="
|
337
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000093_source')" id="l_M000093_source">show source</a> ]</p>
|
338
|
+
<div id="M000093_source" class="dyn-source">
|
339
339
|
<pre>
|
340
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
340
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 112</span>
|
341
341
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chmod</span>(<span class="ruby-identifier">mode</span>)
|
342
342
|
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">chmod</span>(<span class="ruby-identifier">mode</span>, <span class="ruby-identifier">path</span>)
|
343
343
|
<span class="ruby-keyword kw">end</span>
|
@@ -347,13 +347,13 @@ Factory method.
|
|
347
347
|
</div>
|
348
348
|
<div class="method">
|
349
349
|
<div class="title">
|
350
|
-
<a name="
|
350
|
+
<a name="M000094"></a><b>chown</b>(user, group)
|
351
351
|
</div>
|
352
352
|
<div class="sourcecode">
|
353
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
354
|
-
<div id="
|
353
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000094_source')" id="l_M000094_source">show source</a> ]</p>
|
354
|
+
<div id="M000094_source" class="dyn-source">
|
355
355
|
<pre>
|
356
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
356
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 116</span>
|
357
357
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chown</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>)
|
358
358
|
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">chown</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>, <span class="ruby-identifier">path</span>)
|
359
359
|
<span class="ruby-keyword kw">end</span>
|
@@ -363,7 +363,7 @@ Factory method.
|
|
363
363
|
</div>
|
364
364
|
<div class="method">
|
365
365
|
<div class="title">
|
366
|
-
<a name="
|
366
|
+
<a name="M000096"></a><b>cp</b>(dest)
|
367
367
|
</div>
|
368
368
|
<div class="description">
|
369
369
|
<p>
|
@@ -371,10 +371,10 @@ Copy file to destination path.
|
|
371
371
|
</p>
|
372
372
|
</div>
|
373
373
|
<div class="sourcecode">
|
374
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
375
|
-
<div id="
|
374
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000096_source')" id="l_M000096_source">show source</a> ]</p>
|
375
|
+
<div id="M000096_source" class="dyn-source">
|
376
376
|
<pre>
|
377
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
377
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 131</span>
|
378
378
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cp</span>(<span class="ruby-identifier">dest</span>)
|
379
379
|
<span class="ruby-identifier">util</span>.<span class="ruby-identifier">cp</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">dest</span>)
|
380
380
|
<span class="ruby-keyword kw">end</span>
|
@@ -384,13 +384,13 @@ Copy file to destination path.
|
|
384
384
|
</div>
|
385
385
|
<div class="method">
|
386
386
|
<div class="title">
|
387
|
-
<a name="
|
387
|
+
<a name="M000109"></a><b>ctime</b>()
|
388
388
|
</div>
|
389
389
|
<div class="sourcecode">
|
390
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
391
|
-
<div id="
|
390
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000109_source')" id="l_M000109_source">show source</a> ]</p>
|
391
|
+
<div id="M000109_source" class="dyn-source">
|
392
392
|
<pre>
|
393
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
393
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 168</span>
|
394
394
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ctime</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">ctime</span> ; <span class="ruby-keyword kw">end</span>
|
395
395
|
</pre>
|
396
396
|
</div>
|
@@ -398,33 +398,33 @@ Copy file to destination path.
|
|
398
398
|
</div>
|
399
399
|
<div class="method">
|
400
400
|
<div class="title">
|
401
|
-
<a name="
|
401
|
+
<a name="M000088"></a><b>delete</b>()
|
402
402
|
</div>
|
403
403
|
<div class="description">
|
404
404
|
<p>
|
405
|
-
Alias for <a href="FileObject.html#
|
405
|
+
Alias for <a href="FileObject.html#M000087">unlink</a>
|
406
406
|
</p>
|
407
407
|
</div>
|
408
408
|
</div>
|
409
409
|
<div class="method">
|
410
410
|
<div class="title">
|
411
|
-
<a name="
|
411
|
+
<a name="M000091"></a><b>delete_force</b>()
|
412
412
|
</div>
|
413
413
|
<div class="description">
|
414
414
|
<p>
|
415
|
-
Alias for <a href="FileObject.html#
|
415
|
+
Alias for <a href="FileObject.html#M000090">unlink_force</a>
|
416
416
|
</p>
|
417
417
|
</div>
|
418
418
|
</div>
|
419
419
|
<div class="method">
|
420
420
|
<div class="title">
|
421
|
-
<a name="
|
421
|
+
<a name="M000103"></a><b>directory?</b>()
|
422
422
|
</div>
|
423
423
|
<div class="sourcecode">
|
424
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
425
|
-
<div id="
|
424
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">show source</a> ]</p>
|
425
|
+
<div id="M000103_source" class="dyn-source">
|
426
426
|
<pre>
|
427
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
427
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 161</span>
|
428
428
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directory?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">directory?</span> ; <span class="ruby-keyword kw">end</span>
|
429
429
|
</pre>
|
430
430
|
</div>
|
@@ -432,13 +432,13 @@ Alias for <a href="FileObject.html#M000084">unlink_force</a>
|
|
432
432
|
</div>
|
433
433
|
<div class="method">
|
434
434
|
<div class="title">
|
435
|
-
<a name="
|
435
|
+
<a name="M000125"></a><b>dirname</b>()
|
436
436
|
</div>
|
437
437
|
<div class="sourcecode">
|
438
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
439
|
-
<div id="
|
438
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000125_source')" id="l_M000125_source">show source</a> ]</p>
|
439
|
+
<div id="M000125_source" class="dyn-source">
|
440
440
|
<pre>
|
441
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
441
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 189</span>
|
442
442
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dirname</span> ; <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">path</span>) ; <span class="ruby-keyword kw">end</span>
|
443
443
|
</pre>
|
444
444
|
</div>
|
@@ -446,25 +446,44 @@ Alias for <a href="FileObject.html#M000084">unlink_force</a>
|
|
446
446
|
</div>
|
447
447
|
<div class="method">
|
448
448
|
<div class="title">
|
449
|
-
<a name="
|
449
|
+
<a name="M000102"></a><b>document?</b>()
|
450
|
+
</div>
|
451
|
+
<div class="description">
|
452
|
+
<p>
|
453
|
+
def file? ; stat.file? ; end
|
454
|
+
</p>
|
455
|
+
</div>
|
456
|
+
<div class="sourcecode">
|
457
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">show source</a> ]</p>
|
458
|
+
<div id="M000102_source" class="dyn-source">
|
459
|
+
<pre>
|
460
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 160</span>
|
461
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">document?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">file?</span> ; <span class="ruby-keyword kw">end</span>
|
462
|
+
</pre>
|
463
|
+
</div>
|
464
|
+
</div>
|
465
|
+
</div>
|
466
|
+
<div class="method">
|
467
|
+
<div class="title">
|
468
|
+
<a name="M000075"></a><b>exist?</b>()
|
450
469
|
</div>
|
451
470
|
<div class="description">
|
452
471
|
<p>
|
453
472
|
This will alwasy be true, EXCEPT when <a
|
454
|
-
href="FileObject.html#
|
455
|
-
href="FileObject.html#
|
456
|
-
href="FileObject.html#
|
473
|
+
href="FileObject.html#M000089">rm</a>, <a
|
474
|
+
href="FileObject.html#M000088">delete</a> or <a
|
475
|
+
href="FileObject.html#M000087">unlink</a> have been used.
|
457
476
|
</p>
|
458
477
|
</div>
|
459
478
|
<div class="aka">
|
460
479
|
This method is also aliased as
|
461
|
-
<a href="FileObject.html#
|
480
|
+
<a href="FileObject.html#M000076">exists?</a>
|
462
481
|
</div>
|
463
482
|
<div class="sourcecode">
|
464
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
465
|
-
<div id="
|
483
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000075_source')" id="l_M000075_source">show source</a> ]</p>
|
484
|
+
<div id="M000075_source" class="dyn-source">
|
466
485
|
<pre>
|
467
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
486
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 60</span>
|
468
487
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exist?</span>
|
469
488
|
<span class="ruby-operator">::</span><span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">path</span>)
|
470
489
|
<span class="ruby-keyword kw">end</span>
|
@@ -474,7 +493,7 @@ href="FileObject.html#M000081">unlink</a> have been used.
|
|
474
493
|
</div>
|
475
494
|
<div class="method">
|
476
495
|
<div class="title">
|
477
|
-
<a name="
|
496
|
+
<a name="M000076"></a><b>exists?</b>()
|
478
497
|
</div>
|
479
498
|
<div class="description">
|
480
499
|
<p>
|
@@ -484,13 +503,13 @@ Alias for exist?
|
|
484
503
|
</div>
|
485
504
|
<div class="method">
|
486
505
|
<div class="title">
|
487
|
-
<a name="
|
506
|
+
<a name="M000126"></a><b>extname</b>()
|
488
507
|
</div>
|
489
508
|
<div class="sourcecode">
|
490
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
491
|
-
<div id="
|
509
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000126_source')" id="l_M000126_source">show source</a> ]</p>
|
510
|
+
<div id="M000126_source" class="dyn-source">
|
492
511
|
<pre>
|
493
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
512
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 190</span>
|
494
513
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">extname</span> ; <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">extname</span>(<span class="ruby-identifier">path</span>) ; <span class="ruby-keyword kw">end</span>
|
495
514
|
</pre>
|
496
515
|
</div>
|
@@ -498,31 +517,17 @@ Alias for exist?
|
|
498
517
|
</div>
|
499
518
|
<div class="method">
|
500
519
|
<div class="title">
|
501
|
-
<a name="
|
502
|
-
</div>
|
503
|
-
<div class="sourcecode">
|
504
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000096_source')" id="l_M000096_source">show source</a> ]</p>
|
505
|
-
<div id="M000096_source" class="dyn-source">
|
506
|
-
<pre>
|
507
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 152</span>
|
508
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">file?</span> ; <span class="ruby-keyword kw">end</span>
|
509
|
-
</pre>
|
510
|
-
</div>
|
511
|
-
</div>
|
512
|
-
</div>
|
513
|
-
<div class="method">
|
514
|
-
<div class="title">
|
515
|
-
<a name="M000123"></a><b>fnmatch</b>(pattern, flags=0)
|
520
|
+
<a name="M000129"></a><b>fnmatch</b>(pattern, flags=0)
|
516
521
|
</div>
|
517
522
|
<div class="aka">
|
518
523
|
This method is also aliased as
|
519
|
-
<a href="FileObject.html#
|
524
|
+
<a href="FileObject.html#M000130">fnmatch?</a>
|
520
525
|
</div>
|
521
526
|
<div class="sourcecode">
|
522
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
523
|
-
<div id="
|
527
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000129_source')" id="l_M000129_source">show source</a> ]</p>
|
528
|
+
<div id="M000129_source" class="dyn-source">
|
524
529
|
<pre>
|
525
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
530
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 217</span>
|
526
531
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fnmatch</span>(<span class="ruby-identifier">pattern</span>, <span class="ruby-identifier">flags</span>=<span class="ruby-value">0</span>)
|
527
532
|
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">fnmatch</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">pattern</span>, <span class="ruby-identifier">flags</span>)
|
528
533
|
<span class="ruby-keyword kw">end</span>
|
@@ -532,23 +537,23 @@ Alias for exist?
|
|
532
537
|
</div>
|
533
538
|
<div class="method">
|
534
539
|
<div class="title">
|
535
|
-
<a name="
|
540
|
+
<a name="M000130"></a><b>fnmatch?</b>(pattern, flags=0)
|
536
541
|
</div>
|
537
542
|
<div class="description">
|
538
543
|
<p>
|
539
|
-
Alias for <a href="FileObject.html#
|
544
|
+
Alias for <a href="FileObject.html#M000129">fnmatch</a>
|
540
545
|
</p>
|
541
546
|
</div>
|
542
547
|
</div>
|
543
548
|
<div class="method">
|
544
549
|
<div class="title">
|
545
|
-
<a name="
|
550
|
+
<a name="M000110"></a><b>grpowned?</b>()
|
546
551
|
</div>
|
547
552
|
<div class="sourcecode">
|
548
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
549
|
-
<div id="
|
553
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000110_source')" id="l_M000110_source">show source</a> ]</p>
|
554
|
+
<div id="M000110_source" class="dyn-source">
|
550
555
|
<pre>
|
551
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
556
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 169</span>
|
552
557
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">grpowned?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">grpowned?</span> ; <span class="ruby-keyword kw">end</span>
|
553
558
|
</pre>
|
554
559
|
</div>
|
@@ -556,13 +561,13 @@ Alias for <a href="FileObject.html#M000123">fnmatch</a>
|
|
556
561
|
</div>
|
557
562
|
<div class="method">
|
558
563
|
<div class="title">
|
559
|
-
<a name="
|
564
|
+
<a name="M000111"></a><b>identical?</b>()
|
560
565
|
</div>
|
561
566
|
<div class="sourcecode">
|
562
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
563
|
-
<div id="
|
567
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">show source</a> ]</p>
|
568
|
+
<div id="M000111_source" class="dyn-source">
|
564
569
|
<pre>
|
565
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
570
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 170</span>
|
566
571
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">identical?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">identical?</span> ; <span class="ruby-keyword kw">end</span>
|
567
572
|
</pre>
|
568
573
|
</div>
|
@@ -570,20 +575,20 @@ Alias for <a href="FileObject.html#M000123">fnmatch</a>
|
|
570
575
|
</div>
|
571
576
|
<div class="method">
|
572
577
|
<div class="title">
|
573
|
-
<a name="
|
578
|
+
<a name="M000131"></a><b>inspect</b>()
|
574
579
|
</div>
|
575
580
|
<div class="description">
|
576
581
|
<p>
|
577
582
|
Inspect returns the path string <a
|
578
|
-
href="FileObject.html#
|
583
|
+
href="FileObject.html#M000128">relative</a> to the current working
|
579
584
|
directory.
|
580
585
|
</p>
|
581
586
|
</div>
|
582
587
|
<div class="sourcecode">
|
583
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
584
|
-
<div id="
|
588
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000131_source')" id="l_M000131_source">show source</a> ]</p>
|
589
|
+
<div id="M000131_source" class="dyn-source">
|
585
590
|
<pre>
|
586
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
591
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 228</span>
|
587
592
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>; <span class="ruby-node">"#{relative}"</span>; <span class="ruby-keyword kw">end</span>
|
588
593
|
</pre>
|
589
594
|
</div>
|
@@ -591,7 +596,7 @@ directory.
|
|
591
596
|
</div>
|
592
597
|
<div class="method">
|
593
598
|
<div class="title">
|
594
|
-
<a name="
|
599
|
+
<a name="M000097"></a><b>install</b>(dest, mode=nil)
|
595
600
|
</div>
|
596
601
|
<div class="description">
|
597
602
|
<p>
|
@@ -599,10 +604,10 @@ Install file to destination path.
|
|
599
604
|
</p>
|
600
605
|
</div>
|
601
606
|
<div class="sourcecode">
|
602
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
603
|
-
<div id="
|
607
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000097_source')" id="l_M000097_source">show source</a> ]</p>
|
608
|
+
<div id="M000097_source" class="dyn-source">
|
604
609
|
<pre>
|
605
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
610
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 136</span>
|
606
611
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install</span>(<span class="ruby-identifier">dest</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-keyword kw">nil</span>)
|
607
612
|
<span class="ruby-identifier">util</span>.<span class="ruby-identifier">install</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">mode</span>)
|
608
613
|
<span class="ruby-keyword kw">end</span>
|
@@ -612,17 +617,17 @@ Install file to destination path.
|
|
612
617
|
</div>
|
613
618
|
<div class="method">
|
614
619
|
<div class="title">
|
615
|
-
<a name="
|
620
|
+
<a name="M000077"></a><b>link</b>(new)
|
616
621
|
</div>
|
617
622
|
<div class="aka">
|
618
623
|
This method is also aliased as
|
619
|
-
<a href="FileObject.html#
|
624
|
+
<a href="FileObject.html#M000078">ln</a>
|
620
625
|
</div>
|
621
626
|
<div class="sourcecode">
|
622
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
623
|
-
<div id="
|
627
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000077_source')" id="l_M000077_source">show source</a> ]</p>
|
628
|
+
<div id="M000077_source" class="dyn-source">
|
624
629
|
<pre>
|
625
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
630
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 69</span>
|
626
631
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">link</span>(<span class="ruby-identifier">new</span>)
|
627
632
|
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">ln</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">new</span>)
|
628
633
|
<span class="ruby-keyword kw">end</span>
|
@@ -632,17 +637,17 @@ Install file to destination path.
|
|
632
637
|
</div>
|
633
638
|
<div class="method">
|
634
639
|
<div class="title">
|
635
|
-
<a name="
|
640
|
+
<a name="M000079"></a><b>link_force</b>(new)
|
636
641
|
</div>
|
637
642
|
<div class="aka">
|
638
643
|
This method is also aliased as
|
639
|
-
<a href="FileObject.html#
|
644
|
+
<a href="FileObject.html#M000080">ln_f</a>
|
640
645
|
</div>
|
641
646
|
<div class="sourcecode">
|
642
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
643
|
-
<div id="
|
647
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000079_source')" id="l_M000079_source">show source</a> ]</p>
|
648
|
+
<div id="M000079_source" class="dyn-source">
|
644
649
|
<pre>
|
645
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
650
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 74</span>
|
646
651
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">link_force</span>(<span class="ruby-identifier">new</span>)
|
647
652
|
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">new</span>)
|
648
653
|
<span class="ruby-identifier">link</span>(<span class="ruby-identifier">new</span>)
|
@@ -653,53 +658,53 @@ Install file to destination path.
|
|
653
658
|
</div>
|
654
659
|
<div class="method">
|
655
660
|
<div class="title">
|
656
|
-
<a name="
|
661
|
+
<a name="M000078"></a><b>ln</b>(new)
|
657
662
|
</div>
|
658
663
|
<div class="description">
|
659
664
|
<p>
|
660
|
-
Alias for <a href="FileObject.html#
|
665
|
+
Alias for <a href="FileObject.html#M000077">link</a>
|
661
666
|
</p>
|
662
667
|
</div>
|
663
668
|
</div>
|
664
669
|
<div class="method">
|
665
670
|
<div class="title">
|
666
|
-
<a name="
|
671
|
+
<a name="M000080"></a><b>ln_f</b>(new)
|
667
672
|
</div>
|
668
673
|
<div class="description">
|
669
674
|
<p>
|
670
|
-
Alias for <a href="FileObject.html#
|
675
|
+
Alias for <a href="FileObject.html#M000079">link_force</a>
|
671
676
|
</p>
|
672
677
|
</div>
|
673
678
|
</div>
|
674
679
|
<div class="method">
|
675
680
|
<div class="title">
|
676
|
-
<a name="
|
681
|
+
<a name="M000082"></a><b>ln_s</b>(new)
|
677
682
|
</div>
|
678
683
|
<div class="description">
|
679
684
|
<p>
|
680
|
-
Alias for <a href="FileObject.html#
|
685
|
+
Alias for <a href="FileObject.html#M000081">symlink</a>
|
681
686
|
</p>
|
682
687
|
</div>
|
683
688
|
</div>
|
684
689
|
<div class="method">
|
685
690
|
<div class="title">
|
686
|
-
<a name="
|
691
|
+
<a name="M000084"></a><b>ln_sf</b>(new)
|
687
692
|
</div>
|
688
693
|
<div class="description">
|
689
694
|
<p>
|
690
|
-
Alias for <a href="FileObject.html#
|
695
|
+
Alias for <a href="FileObject.html#M000083">symlink_force</a>
|
691
696
|
</p>
|
692
697
|
</div>
|
693
698
|
</div>
|
694
699
|
<div class="method">
|
695
700
|
<div class="title">
|
696
|
-
<a name="
|
701
|
+
<a name="M000112"></a><b>mtime</b>()
|
697
702
|
</div>
|
698
703
|
<div class="sourcecode">
|
699
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
700
|
-
<div id="
|
704
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000112_source')" id="l_M000112_source">show source</a> ]</p>
|
705
|
+
<div id="M000112_source" class="dyn-source">
|
701
706
|
<pre>
|
702
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
707
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 171</span>
|
703
708
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mtime</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">mtime</span> ; <span class="ruby-keyword kw">end</span>
|
704
709
|
</pre>
|
705
710
|
</div>
|
@@ -707,23 +712,23 @@ Alias for <a href="FileObject.html#M000077">symlink_force</a>
|
|
707
712
|
</div>
|
708
713
|
<div class="method">
|
709
714
|
<div class="title">
|
710
|
-
<a name="
|
715
|
+
<a name="M000086"></a><b>mv</b>(dest)
|
711
716
|
</div>
|
712
717
|
<div class="description">
|
713
718
|
<p>
|
714
|
-
Alias for <a href="FileObject.html#
|
719
|
+
Alias for <a href="FileObject.html#M000085">rename</a>
|
715
720
|
</p>
|
716
721
|
</div>
|
717
722
|
</div>
|
718
723
|
<div class="method">
|
719
724
|
<div class="title">
|
720
|
-
<a name="
|
725
|
+
<a name="M000113"></a><b>owned?</b>()
|
721
726
|
</div>
|
722
727
|
<div class="sourcecode">
|
723
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
724
|
-
<div id="
|
728
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000113_source')" id="l_M000113_source">show source</a> ]</p>
|
729
|
+
<div id="M000113_source" class="dyn-source">
|
725
730
|
<pre>
|
726
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
731
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 172</span>
|
727
732
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">owned?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">owned?</span> ; <span class="ruby-keyword kw">end</span>
|
728
733
|
</pre>
|
729
734
|
</div>
|
@@ -731,13 +736,13 @@ Alias for <a href="FileObject.html#M000079">rename</a>
|
|
731
736
|
</div>
|
732
737
|
<div class="method">
|
733
738
|
<div class="title">
|
734
|
-
<a name="
|
739
|
+
<a name="M000107"></a><b>pipe?</b>()
|
735
740
|
</div>
|
736
741
|
<div class="sourcecode">
|
737
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
738
|
-
<div id="
|
742
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show source</a> ]</p>
|
743
|
+
<div id="M000107_source" class="dyn-source">
|
739
744
|
<pre>
|
740
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
745
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 165</span>
|
741
746
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pipe?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">pipe?</span> ; <span class="ruby-keyword kw">end</span>
|
742
747
|
</pre>
|
743
748
|
</div>
|
@@ -745,13 +750,13 @@ Alias for <a href="FileObject.html#M000079">rename</a>
|
|
745
750
|
</div>
|
746
751
|
<div class="method">
|
747
752
|
<div class="title">
|
748
|
-
<a name="
|
753
|
+
<a name="M000114"></a><b>readable?</b>()
|
749
754
|
</div>
|
750
755
|
<div class="sourcecode">
|
751
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
752
|
-
<div id="
|
756
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000114_source')" id="l_M000114_source">show source</a> ]</p>
|
757
|
+
<div id="M000114_source" class="dyn-source">
|
753
758
|
<pre>
|
754
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
759
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 173</span>
|
755
760
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">readable?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">readable?</span> ; <span class="ruby-keyword kw">end</span>
|
756
761
|
</pre>
|
757
762
|
</div>
|
@@ -759,13 +764,13 @@ Alias for <a href="FileObject.html#M000079">rename</a>
|
|
759
764
|
</div>
|
760
765
|
<div class="method">
|
761
766
|
<div class="title">
|
762
|
-
<a name="
|
767
|
+
<a name="M000115"></a><b>readable_real?</b>()
|
763
768
|
</div>
|
764
769
|
<div class="sourcecode">
|
765
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
766
|
-
<div id="
|
770
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000115_source')" id="l_M000115_source">show source</a> ]</p>
|
771
|
+
<div id="M000115_source" class="dyn-source">
|
767
772
|
<pre>
|
768
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
773
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 174</span>
|
769
774
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">readable_real?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">readable_real</span> ; <span class="ruby-keyword kw">end</span>
|
770
775
|
</pre>
|
771
776
|
</div>
|
@@ -773,20 +778,20 @@ Alias for <a href="FileObject.html#M000079">rename</a>
|
|
773
778
|
</div>
|
774
779
|
<div class="method">
|
775
780
|
<div class="title">
|
776
|
-
<a name="
|
781
|
+
<a name="M000128"></a><b>relative</b>()
|
777
782
|
</div>
|
778
783
|
<div class="description">
|
779
784
|
<p>
|
780
|
-
Gives path <a href="FileObject.html#
|
785
|
+
Gives path <a href="FileObject.html#M000128">relative</a> to current
|
781
786
|
working directory. If current is below path one step then it uses
|
782
787
|
’..’, further below and it returns the full path.
|
783
788
|
</p>
|
784
789
|
</div>
|
785
790
|
<div class="sourcecode">
|
786
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
787
|
-
<div id="
|
791
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000128_source')" id="l_M000128_source">show source</a> ]</p>
|
792
|
+
<div id="M000128_source" class="dyn-source">
|
788
793
|
<pre>
|
789
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
794
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 198</span>
|
790
795
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">relative</span>
|
791
796
|
<span class="ruby-identifier">pwd</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">pwd</span>
|
792
797
|
<span class="ruby-identifier">pth</span> = <span class="ruby-identifier">path</span>
|
@@ -811,17 +816,17 @@ working directory. If current is below path one step then it uses
|
|
811
816
|
</div>
|
812
817
|
<div class="method">
|
813
818
|
<div class="title">
|
814
|
-
<a name="
|
819
|
+
<a name="M000085"></a><b>rename</b>(dest)
|
815
820
|
</div>
|
816
821
|
<div class="aka">
|
817
822
|
This method is also aliased as
|
818
|
-
<a href="FileObject.html#
|
823
|
+
<a href="FileObject.html#M000086">mv</a>
|
819
824
|
</div>
|
820
825
|
<div class="sourcecode">
|
821
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
822
|
-
<div id="
|
826
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000085_source')" id="l_M000085_source">show source</a> ]</p>
|
827
|
+
<div id="M000085_source" class="dyn-source">
|
823
828
|
<pre>
|
824
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
829
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 91</span>
|
825
830
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rename</span>(<span class="ruby-identifier">dest</span>)
|
826
831
|
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">rename</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">dest</span>)
|
827
832
|
<span class="ruby-ivar">@relpath</span> = <span class="ruby-identifier">dest</span>
|
@@ -833,7 +838,7 @@ working directory. If current is below path one step then it uses
|
|
833
838
|
</div>
|
834
839
|
<div class="method">
|
835
840
|
<div class="title">
|
836
|
-
<a name="
|
841
|
+
<a name="M000100"></a><b>restat</b>()
|
837
842
|
</div>
|
838
843
|
<div class="description">
|
839
844
|
<p>
|
@@ -842,13 +847,13 @@ Refresh status cache.
|
|
842
847
|
</div>
|
843
848
|
<div class="aka">
|
844
849
|
This method is also aliased as
|
845
|
-
<a href="FileObject.html#
|
850
|
+
<a href="FileObject.html#M000101">stat!</a>
|
846
851
|
</div>
|
847
852
|
<div class="sourcecode">
|
848
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
849
|
-
<div id="
|
853
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">show source</a> ]</p>
|
854
|
+
<div id="M000100_source" class="dyn-source">
|
850
855
|
<pre>
|
851
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
856
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 154</span>
|
852
857
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restat</span>
|
853
858
|
<span class="ruby-ivar">@stat</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">stat</span>(<span class="ruby-identifier">path</span>)
|
854
859
|
<span class="ruby-keyword kw">end</span>
|
@@ -858,33 +863,33 @@ Refresh status cache.
|
|
858
863
|
</div>
|
859
864
|
<div class="method">
|
860
865
|
<div class="title">
|
861
|
-
<a name="
|
866
|
+
<a name="M000089"></a><b>rm</b>()
|
862
867
|
</div>
|
863
868
|
<div class="description">
|
864
869
|
<p>
|
865
|
-
Alias for <a href="FileObject.html#
|
870
|
+
Alias for <a href="FileObject.html#M000087">unlink</a>
|
866
871
|
</p>
|
867
872
|
</div>
|
868
873
|
</div>
|
869
874
|
<div class="method">
|
870
875
|
<div class="title">
|
871
|
-
<a name="
|
876
|
+
<a name="M000092"></a><b>rm_f</b>()
|
872
877
|
</div>
|
873
878
|
<div class="description">
|
874
879
|
<p>
|
875
|
-
Alias for <a href="FileObject.html#
|
880
|
+
Alias for <a href="FileObject.html#M000090">unlink_force</a>
|
876
881
|
</p>
|
877
882
|
</div>
|
878
883
|
</div>
|
879
884
|
<div class="method">
|
880
885
|
<div class="title">
|
881
|
-
<a name="
|
886
|
+
<a name="M000116"></a><b>setgid?</b>()
|
882
887
|
</div>
|
883
888
|
<div class="sourcecode">
|
884
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
885
|
-
<div id="
|
889
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000116_source')" id="l_M000116_source">show source</a> ]</p>
|
890
|
+
<div id="M000116_source" class="dyn-source">
|
886
891
|
<pre>
|
887
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
892
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 175</span>
|
888
893
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setgid?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">setgid?</span> ; <span class="ruby-keyword kw">end</span>
|
889
894
|
</pre>
|
890
895
|
</div>
|
@@ -892,13 +897,13 @@ Alias for <a href="FileObject.html#M000084">unlink_force</a>
|
|
892
897
|
</div>
|
893
898
|
<div class="method">
|
894
899
|
<div class="title">
|
895
|
-
<a name="
|
900
|
+
<a name="M000117"></a><b>setuid?</b>()
|
896
901
|
</div>
|
897
902
|
<div class="sourcecode">
|
898
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
899
|
-
<div id="
|
903
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000117_source')" id="l_M000117_source">show source</a> ]</p>
|
904
|
+
<div id="M000117_source" class="dyn-source">
|
900
905
|
<pre>
|
901
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
906
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 176</span>
|
902
907
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setuid?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">setuid?</span> ; <span class="ruby-keyword kw">end</span>
|
903
908
|
</pre>
|
904
909
|
</div>
|
@@ -906,13 +911,13 @@ Alias for <a href="FileObject.html#M000084">unlink_force</a>
|
|
906
911
|
</div>
|
907
912
|
<div class="method">
|
908
913
|
<div class="title">
|
909
|
-
<a name="
|
914
|
+
<a name="M000118"></a><b>size</b>()
|
910
915
|
</div>
|
911
916
|
<div class="sourcecode">
|
912
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
913
|
-
<div id="
|
917
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000118_source')" id="l_M000118_source">show source</a> ]</p>
|
918
|
+
<div id="M000118_source" class="dyn-source">
|
914
919
|
<pre>
|
915
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
920
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 177</span>
|
916
921
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">size</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">size</span> ; <span class="ruby-keyword kw">end</span>
|
917
922
|
</pre>
|
918
923
|
</div>
|
@@ -920,13 +925,13 @@ Alias for <a href="FileObject.html#M000084">unlink_force</a>
|
|
920
925
|
</div>
|
921
926
|
<div class="method">
|
922
927
|
<div class="title">
|
923
|
-
<a name="
|
928
|
+
<a name="M000119"></a><b>size?</b>()
|
924
929
|
</div>
|
925
930
|
<div class="sourcecode">
|
926
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
927
|
-
<div id="
|
931
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000119_source')" id="l_M000119_source">show source</a> ]</p>
|
932
|
+
<div id="M000119_source" class="dyn-source">
|
928
933
|
<pre>
|
929
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
934
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 178</span>
|
930
935
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">size?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">size?</span> ; <span class="ruby-keyword kw">end</span>
|
931
936
|
</pre>
|
932
937
|
</div>
|
@@ -934,13 +939,13 @@ Alias for <a href="FileObject.html#M000084">unlink_force</a>
|
|
934
939
|
</div>
|
935
940
|
<div class="method">
|
936
941
|
<div class="title">
|
937
|
-
<a name="
|
942
|
+
<a name="M000106"></a><b>socket?</b>()
|
938
943
|
</div>
|
939
944
|
<div class="sourcecode">
|
940
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
941
|
-
<div id="
|
945
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">show source</a> ]</p>
|
946
|
+
<div id="M000106_source" class="dyn-source">
|
942
947
|
<pre>
|
943
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
948
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 164</span>
|
944
949
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">socket?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">socket?</span> ; <span class="ruby-keyword kw">end</span>
|
945
950
|
</pre>
|
946
951
|
</div>
|
@@ -948,7 +953,7 @@ Alias for <a href="FileObject.html#M000084">unlink_force</a>
|
|
948
953
|
</div>
|
949
954
|
<div class="method">
|
950
955
|
<div class="title">
|
951
|
-
<a name="
|
956
|
+
<a name="M000127"></a><b>split</b>()
|
952
957
|
</div>
|
953
958
|
<div class="description">
|
954
959
|
<p>
|
@@ -956,10 +961,10 @@ TODO: I don‘t like the name of this.
|
|
956
961
|
</p>
|
957
962
|
</div>
|
958
963
|
<div class="sourcecode">
|
959
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
960
|
-
<div id="
|
964
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000127_source')" id="l_M000127_source">show source</a> ]</p>
|
965
|
+
<div id="M000127_source" class="dyn-source">
|
961
966
|
<pre>
|
962
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
967
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 193</span>
|
963
968
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">split</span> ; <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">split</span>(<span class="ruby-identifier">path</span>) ; <span class="ruby-keyword kw">end</span>
|
964
969
|
</pre>
|
965
970
|
</div>
|
@@ -967,18 +972,18 @@ TODO: I don‘t like the name of this.
|
|
967
972
|
</div>
|
968
973
|
<div class="method">
|
969
974
|
<div class="title">
|
970
|
-
<a name="
|
975
|
+
<a name="M000099"></a><b>stat</b>()
|
971
976
|
</div>
|
972
977
|
<div class="description">
|
973
978
|
<p>
|
974
|
-
Get <a href="FileObject.html#
|
979
|
+
Get <a href="FileObject.html#M000099">stat</a> and cache it.
|
975
980
|
</p>
|
976
981
|
</div>
|
977
982
|
<div class="sourcecode">
|
978
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
979
|
-
<div id="
|
983
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000099_source')" id="l_M000099_source">show source</a> ]</p>
|
984
|
+
<div id="M000099_source" class="dyn-source">
|
980
985
|
<pre>
|
981
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
986
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 149</span>
|
982
987
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stat</span>
|
983
988
|
<span class="ruby-ivar">@stat</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">stat</span>(<span class="ruby-identifier">path</span>)
|
984
989
|
<span class="ruby-keyword kw">end</span>
|
@@ -988,23 +993,23 @@ Get <a href="FileObject.html#M000093">stat</a> and cache it.
|
|
988
993
|
</div>
|
989
994
|
<div class="method">
|
990
995
|
<div class="title">
|
991
|
-
<a name="
|
996
|
+
<a name="M000101"></a><b>stat!</b>()
|
992
997
|
</div>
|
993
998
|
<div class="description">
|
994
999
|
<p>
|
995
|
-
Alias for <a href="FileObject.html#
|
1000
|
+
Alias for <a href="FileObject.html#M000100">restat</a>
|
996
1001
|
</p>
|
997
1002
|
</div>
|
998
1003
|
</div>
|
999
1004
|
<div class="method">
|
1000
1005
|
<div class="title">
|
1001
|
-
<a name="
|
1006
|
+
<a name="M000120"></a><b>sticky?</b>()
|
1002
1007
|
</div>
|
1003
1008
|
<div class="sourcecode">
|
1004
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1005
|
-
<div id="
|
1009
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000120_source')" id="l_M000120_source">show source</a> ]</p>
|
1010
|
+
<div id="M000120_source" class="dyn-source">
|
1006
1011
|
<pre>
|
1007
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
1012
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 179</span>
|
1008
1013
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sticky?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">sticky?</span> ; <span class="ruby-keyword kw">end</span>
|
1009
1014
|
</pre>
|
1010
1015
|
</div>
|
@@ -1012,17 +1017,17 @@ Alias for <a href="FileObject.html#M000094">restat</a>
|
|
1012
1017
|
</div>
|
1013
1018
|
<div class="method">
|
1014
1019
|
<div class="title">
|
1015
|
-
<a name="
|
1020
|
+
<a name="M000081"></a><b>symlink</b>(new)
|
1016
1021
|
</div>
|
1017
1022
|
<div class="aka">
|
1018
1023
|
This method is also aliased as
|
1019
|
-
<a href="FileObject.html#
|
1024
|
+
<a href="FileObject.html#M000082">ln_s</a>
|
1020
1025
|
</div>
|
1021
1026
|
<div class="sourcecode">
|
1022
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1023
|
-
<div id="
|
1027
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000081_source')" id="l_M000081_source">show source</a> ]</p>
|
1028
|
+
<div id="M000081_source" class="dyn-source">
|
1024
1029
|
<pre>
|
1025
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
1030
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 80</span>
|
1026
1031
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symlink</span>(<span class="ruby-identifier">new</span>)
|
1027
1032
|
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">symlink</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">new</span>)
|
1028
1033
|
<span class="ruby-keyword kw">end</span>
|
@@ -1032,17 +1037,17 @@ Alias for <a href="FileObject.html#M000094">restat</a>
|
|
1032
1037
|
</div>
|
1033
1038
|
<div class="method">
|
1034
1039
|
<div class="title">
|
1035
|
-
<a name="
|
1040
|
+
<a name="M000083"></a><b>symlink_force</b>(new)
|
1036
1041
|
</div>
|
1037
1042
|
<div class="aka">
|
1038
1043
|
This method is also aliased as
|
1039
|
-
<a href="FileObject.html#
|
1044
|
+
<a href="FileObject.html#M000084">ln_sf</a>
|
1040
1045
|
</div>
|
1041
1046
|
<div class="sourcecode">
|
1042
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1043
|
-
<div id="
|
1047
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000083_source')" id="l_M000083_source">show source</a> ]</p>
|
1048
|
+
<div id="M000083_source" class="dyn-source">
|
1044
1049
|
<pre>
|
1045
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
1050
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 85</span>
|
1046
1051
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symlink_force</span>(<span class="ruby-identifier">new</span>)
|
1047
1052
|
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">new</span>)
|
1048
1053
|
<span class="ruby-identifier">symlink</span>(<span class="ruby-identifier">new</span>)
|
@@ -1053,7 +1058,7 @@ Alias for <a href="FileObject.html#M000094">restat</a>
|
|
1053
1058
|
</div>
|
1054
1059
|
<div class="method">
|
1055
1060
|
<div class="title">
|
1056
|
-
<a name="
|
1061
|
+
<a name="M000132"></a><b>to_s</b>()
|
1057
1062
|
</div>
|
1058
1063
|
<div class="description">
|
1059
1064
|
<p>
|
@@ -1061,10 +1066,10 @@ Returns the path string.
|
|
1061
1066
|
</p>
|
1062
1067
|
</div>
|
1063
1068
|
<div class="sourcecode">
|
1064
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1065
|
-
<div id="
|
1069
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000132_source')" id="l_M000132_source">show source</a> ]</p>
|
1070
|
+
<div id="M000132_source" class="dyn-source">
|
1066
1071
|
<pre>
|
1067
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
1072
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 231</span>
|
1068
1073
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-identifier">path</span> ; <span class="ruby-keyword kw">end</span>
|
1069
1074
|
</pre>
|
1070
1075
|
</div>
|
@@ -1072,13 +1077,13 @@ Returns the path string.
|
|
1072
1077
|
</div>
|
1073
1078
|
<div class="method">
|
1074
1079
|
<div class="title">
|
1075
|
-
<a name="
|
1080
|
+
<a name="M000098"></a><b>touch</b>()
|
1076
1081
|
</div>
|
1077
1082
|
<div class="sourcecode">
|
1078
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1079
|
-
<div id="
|
1083
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000098_source')" id="l_M000098_source">show source</a> ]</p>
|
1084
|
+
<div id="M000098_source" class="dyn-source">
|
1080
1085
|
<pre>
|
1081
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
1086
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 140</span>
|
1082
1087
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">touch</span>
|
1083
1088
|
<span class="ruby-identifier">util</span>.<span class="ruby-identifier">touch</span>(<span class="ruby-identifier">path</span>)
|
1084
1089
|
<span class="ruby-keyword kw">end</span>
|
@@ -1088,7 +1093,7 @@ Returns the path string.
|
|
1088
1093
|
</div>
|
1089
1094
|
<div class="method">
|
1090
1095
|
<div class="title">
|
1091
|
-
<a name="
|
1096
|
+
<a name="M000087"></a><b>unlink</b>()
|
1092
1097
|
</div>
|
1093
1098
|
<div class="description">
|
1094
1099
|
<p>
|
@@ -1097,14 +1102,14 @@ how to handle —b/c it disappears?
|
|
1097
1102
|
</div>
|
1098
1103
|
<div class="aka">
|
1099
1104
|
This method is also aliased as
|
1100
|
-
<a href="FileObject.html#
|
1101
|
-
<a href="FileObject.html#
|
1105
|
+
<a href="FileObject.html#M000088">delete</a>
|
1106
|
+
<a href="FileObject.html#M000089">rm</a>
|
1102
1107
|
</div>
|
1103
1108
|
<div class="sourcecode">
|
1104
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1105
|
-
<div id="
|
1109
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000087_source')" id="l_M000087_source">show source</a> ]</p>
|
1110
|
+
<div id="M000087_source" class="dyn-source">
|
1106
1111
|
<pre>
|
1107
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
1112
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 99</span>
|
1108
1113
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unlink</span>
|
1109
1114
|
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">path</span>)
|
1110
1115
|
<span class="ruby-keyword kw">end</span>
|
@@ -1114,18 +1119,18 @@ how to handle —b/c it disappears?
|
|
1114
1119
|
</div>
|
1115
1120
|
<div class="method">
|
1116
1121
|
<div class="title">
|
1117
|
-
<a name="
|
1122
|
+
<a name="M000090"></a><b>unlink_force</b>()
|
1118
1123
|
</div>
|
1119
1124
|
<div class="aka">
|
1120
1125
|
This method is also aliased as
|
1121
|
-
<a href="FileObject.html#
|
1122
|
-
<a href="FileObject.html#
|
1126
|
+
<a href="FileObject.html#M000091">delete_force</a>
|
1127
|
+
<a href="FileObject.html#M000092">rm_f</a>
|
1123
1128
|
</div>
|
1124
1129
|
<div class="sourcecode">
|
1125
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1126
|
-
<div id="
|
1130
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000090_source')" id="l_M000090_source">show source</a> ]</p>
|
1131
|
+
<div id="M000090_source" class="dyn-source">
|
1127
1132
|
<pre>
|
1128
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
1133
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 105</span>
|
1129
1134
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unlink_force</span>
|
1130
1135
|
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">new</span>)
|
1131
1136
|
<span class="ruby-identifier">unlink</span>(<span class="ruby-identifier">path</span>)
|
@@ -1136,13 +1141,13 @@ how to handle —b/c it disappears?
|
|
1136
1141
|
</div>
|
1137
1142
|
<div class="method">
|
1138
1143
|
<div class="title">
|
1139
|
-
<a name="
|
1144
|
+
<a name="M000095"></a><b>utime</b>(atime, mtime)
|
1140
1145
|
</div>
|
1141
1146
|
<div class="sourcecode">
|
1142
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1143
|
-
<div id="
|
1147
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000095_source')" id="l_M000095_source">show source</a> ]</p>
|
1148
|
+
<div id="M000095_source" class="dyn-source">
|
1144
1149
|
<pre>
|
1145
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
1150
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 120</span>
|
1146
1151
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">utime</span>(<span class="ruby-identifier">atime</span>, <span class="ruby-identifier">mtime</span>)
|
1147
1152
|
<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">utime</span>(<span class="ruby-identifier">atime</span>, <span class="ruby-identifier">mtime</span>, <span class="ruby-identifier">path</span>)
|
1148
1153
|
<span class="ruby-keyword kw">end</span>
|
@@ -1152,13 +1157,13 @@ how to handle —b/c it disappears?
|
|
1152
1157
|
</div>
|
1153
1158
|
<div class="method">
|
1154
1159
|
<div class="title">
|
1155
|
-
<a name="
|
1160
|
+
<a name="M000121"></a><b>writable?</b>()
|
1156
1161
|
</div>
|
1157
1162
|
<div class="sourcecode">
|
1158
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1159
|
-
<div id="
|
1163
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000121_source')" id="l_M000121_source">show source</a> ]</p>
|
1164
|
+
<div id="M000121_source" class="dyn-source">
|
1160
1165
|
<pre>
|
1161
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
1166
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 180</span>
|
1162
1167
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">writable?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">writable?</span> ; <span class="ruby-keyword kw">end</span>
|
1163
1168
|
</pre>
|
1164
1169
|
</div>
|
@@ -1166,13 +1171,13 @@ how to handle —b/c it disappears?
|
|
1166
1171
|
</div>
|
1167
1172
|
<div class="method">
|
1168
1173
|
<div class="title">
|
1169
|
-
<a name="
|
1174
|
+
<a name="M000122"></a><b>writable_real?</b>()
|
1170
1175
|
</div>
|
1171
1176
|
<div class="sourcecode">
|
1172
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1173
|
-
<div id="
|
1177
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000122_source')" id="l_M000122_source">show source</a> ]</p>
|
1178
|
+
<div id="M000122_source" class="dyn-source">
|
1174
1179
|
<pre>
|
1175
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
1180
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 181</span>
|
1176
1181
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">writable_real?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">writable_real?</span> ; <span class="ruby-keyword kw">end</span>
|
1177
1182
|
</pre>
|
1178
1183
|
</div>
|
@@ -1180,13 +1185,13 @@ how to handle —b/c it disappears?
|
|
1180
1185
|
</div>
|
1181
1186
|
<div class="method">
|
1182
1187
|
<div class="title">
|
1183
|
-
<a name="
|
1188
|
+
<a name="M000123"></a><b>zero?</b>()
|
1184
1189
|
</div>
|
1185
1190
|
<div class="sourcecode">
|
1186
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1187
|
-
<div id="
|
1191
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000123_source')" id="l_M000123_source">show source</a> ]</p>
|
1192
|
+
<div id="M000123_source" class="dyn-source">
|
1188
1193
|
<pre>
|
1189
|
-
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line
|
1194
|
+
<span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 182</span>
|
1190
1195
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">zero?</span> ; <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">zero?</span> ; <span class="ruby-keyword kw">end</span>
|
1191
1196
|
</pre>
|
1192
1197
|
</div>
|