folio 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (207) hide show
  1. data/COPYING +675 -0
  2. data/MANIFEST +234 -0
  3. data/METADATA +8 -0
  4. data/NEWS +9 -0
  5. data/README +69 -0
  6. data/demo/sample1/foo/foo.txt +1 -0
  7. data/demo/sample1/tryme.rb +14 -0
  8. data/doc/rdoc/classes/Folio/BlockDevice.html +117 -0
  9. data/doc/rdoc/classes/Folio/CharacterDevice.html +117 -0
  10. data/doc/rdoc/classes/Folio/Device.html +119 -0
  11. data/doc/rdoc/classes/Folio/Directory.html +420 -0
  12. data/doc/rdoc/classes/Folio/Document.html +261 -0
  13. data/doc/rdoc/classes/Folio/FileNotFound.html +92 -0
  14. data/doc/rdoc/classes/Folio/FileObject.html +1200 -0
  15. data/doc/rdoc/classes/Folio/Link.html +238 -0
  16. data/doc/rdoc/classes/Folio/Pipe.html +131 -0
  17. data/doc/rdoc/classes/Folio/Prompt.html +796 -0
  18. data/doc/rdoc/classes/Folio/Socket.html +115 -0
  19. data/doc/rdoc/classes/Folio.html +148 -0
  20. data/doc/rdoc/created.rid +1 -0
  21. data/doc/rdoc/files/COPYING.html +992 -0
  22. data/doc/rdoc/files/METADATA.html +101 -0
  23. data/doc/rdoc/files/NEWS.html +102 -0
  24. data/doc/rdoc/files/README.html +171 -0
  25. data/doc/rdoc/files/lib/folio/device_rb.html +96 -0
  26. data/doc/rdoc/files/lib/folio/directory_rb.html +96 -0
  27. data/doc/rdoc/files/lib/folio/document_rb.html +96 -0
  28. data/doc/rdoc/files/lib/folio/errors_rb.html +92 -0
  29. data/doc/rdoc/files/lib/folio/fileobject_rb.html +92 -0
  30. data/doc/rdoc/files/lib/folio/link_rb.html +96 -0
  31. data/doc/rdoc/files/lib/folio/pipe_rb.html +96 -0
  32. data/doc/rdoc/files/lib/folio/prompt_rb.html +92 -0
  33. data/doc/rdoc/files/lib/folio/socket_rb.html +96 -0
  34. data/doc/rdoc/files/lib/folio_rb.html +105 -0
  35. data/doc/rdoc/fr_class_index.html +58 -0
  36. data/doc/rdoc/fr_file_index.html +60 -0
  37. data/doc/rdoc/fr_method_index.html +185 -0
  38. data/doc/rdoc/index.html +26 -0
  39. data/doc/rdoc/rdoc-style.css +175 -0
  40. data/doc/ri/Folio/BlockDevice/blockdev%3f-i.yaml +10 -0
  41. data/doc/ri/Folio/BlockDevice/cdesc-BlockDevice.yaml +18 -0
  42. data/doc/ri/Folio/CharacterDevice/cdesc-CharacterDevice.yaml +18 -0
  43. data/doc/ri/Folio/CharacterDevice/chardev%3f-i.yaml +10 -0
  44. data/doc/ri/Folio/Device/cdesc-Device.yaml +18 -0
  45. data/doc/ri/Folio/Device/new-c.yaml +10 -0
  46. data/doc/ri/Folio/Directory/%2b-i.yaml +12 -0
  47. data/doc/ri/Folio/Directory/%2f-i.yaml +13 -0
  48. data/doc/ri/Folio/Directory/cd-i.yaml +12 -0
  49. data/doc/ri/Folio/Directory/cdesc-Directory.yaml +49 -0
  50. data/doc/ri/Folio/Directory/chdir-i.yaml +11 -0
  51. data/doc/ri/Folio/Directory/chmod_r-i.yaml +10 -0
  52. data/doc/ri/Folio/Directory/chown_r-i.yaml +12 -0
  53. data/doc/ri/Folio/Directory/chroot-i.yaml +10 -0
  54. data/doc/ri/Folio/Directory/cp_r-i.yaml +12 -0
  55. data/doc/ri/Folio/Directory/delete-i.yaml +12 -0
  56. data/doc/ri/Folio/Directory/directory%3f-i.yaml +10 -0
  57. data/doc/ri/Folio/Directory/entries-i.yaml +12 -0
  58. data/doc/ri/Folio/Directory/foreach-i.yaml +10 -0
  59. data/doc/ri/Folio/Directory/new-c.yaml +10 -0
  60. data/doc/ri/Folio/Directory/paths-i.yaml +12 -0
  61. data/doc/ri/Folio/Directory/rm_r-i.yaml +10 -0
  62. data/doc/ri/Folio/Directory/rm_rf-i.yaml +10 -0
  63. data/doc/ri/Folio/Directory/rmdir-i.yaml +13 -0
  64. data/doc/ri/Folio/Directory/unlink-i.yaml +12 -0
  65. data/doc/ri/Folio/Document/cdesc-Document.yaml +34 -0
  66. data/doc/ri/Folio/Document/delete-i.yaml +10 -0
  67. data/doc/ri/Folio/Document/executable%3f-i.yaml +10 -0
  68. data/doc/ri/Folio/Document/executable_real%3f-i.yaml +10 -0
  69. data/doc/ri/Folio/Document/file%3f-i.yaml +10 -0
  70. data/doc/ri/Folio/Document/intialize-i.yaml +10 -0
  71. data/doc/ri/Folio/Document/open-i.yaml +10 -0
  72. data/doc/ri/Folio/Document/read-i.yaml +10 -0
  73. data/doc/ri/Folio/Document/readlines-i.yaml +10 -0
  74. data/doc/ri/Folio/Document/truncate-i.yaml +10 -0
  75. data/doc/ri/Folio/Document/unlink-i.yaml +12 -0
  76. data/doc/ri/Folio/FileNotFound/cdesc-FileNotFound.yaml +15 -0
  77. data/doc/ri/Folio/FileObject/%3c%3d%3e-i.yaml +10 -0
  78. data/doc/ri/Folio/FileObject/%3d%3d-i.yaml +10 -0
  79. data/doc/ri/Folio/FileObject/%5b%5d-c.yaml +12 -0
  80. data/doc/ri/Folio/FileObject/atime-i.yaml +10 -0
  81. data/doc/ri/Folio/FileObject/basename-i.yaml +10 -0
  82. data/doc/ri/Folio/FileObject/blockdev%3f-i.yaml +10 -0
  83. data/doc/ri/Folio/FileObject/cdesc-FileObject.yaml +154 -0
  84. data/doc/ri/Folio/FileObject/chardev%3f-i.yaml +10 -0
  85. data/doc/ri/Folio/FileObject/chmod-i.yaml +10 -0
  86. data/doc/ri/Folio/FileObject/chown-i.yaml +10 -0
  87. data/doc/ri/Folio/FileObject/cp-i.yaml +12 -0
  88. data/doc/ri/Folio/FileObject/ctime-i.yaml +10 -0
  89. data/doc/ri/Folio/FileObject/delete-i.yaml +12 -0
  90. data/doc/ri/Folio/FileObject/delete_force-i.yaml +12 -0
  91. data/doc/ri/Folio/FileObject/directory%3f-i.yaml +10 -0
  92. data/doc/ri/Folio/FileObject/dirname-i.yaml +10 -0
  93. data/doc/ri/Folio/FileObject/exist%3f-i.yaml +13 -0
  94. data/doc/ri/Folio/FileObject/exists%3f-i.yaml +12 -0
  95. data/doc/ri/Folio/FileObject/extname-i.yaml +10 -0
  96. data/doc/ri/Folio/FileObject/file%3f-i.yaml +10 -0
  97. data/doc/ri/Folio/FileObject/fnmatch%3f-i.yaml +12 -0
  98. data/doc/ri/Folio/FileObject/fnmatch-i.yaml +11 -0
  99. data/doc/ri/Folio/FileObject/grpowned%3f-i.yaml +10 -0
  100. data/doc/ri/Folio/FileObject/identical%3f-i.yaml +10 -0
  101. data/doc/ri/Folio/FileObject/inspect-i.yaml +12 -0
  102. data/doc/ri/Folio/FileObject/install-i.yaml +12 -0
  103. data/doc/ri/Folio/FileObject/link-i.yaml +11 -0
  104. data/doc/ri/Folio/FileObject/link_force-i.yaml +11 -0
  105. data/doc/ri/Folio/FileObject/ln-i.yaml +12 -0
  106. data/doc/ri/Folio/FileObject/ln_f-i.yaml +12 -0
  107. data/doc/ri/Folio/FileObject/ln_s-i.yaml +12 -0
  108. data/doc/ri/Folio/FileObject/ln_sf-i.yaml +12 -0
  109. data/doc/ri/Folio/FileObject/mtime-i.yaml +10 -0
  110. data/doc/ri/Folio/FileObject/mv-i.yaml +12 -0
  111. data/doc/ri/Folio/FileObject/new-c.yaml +10 -0
  112. data/doc/ri/Folio/FileObject/owned%3f-i.yaml +10 -0
  113. data/doc/ri/Folio/FileObject/pipe%3f-i.yaml +10 -0
  114. data/doc/ri/Folio/FileObject/readable%3f-i.yaml +10 -0
  115. data/doc/ri/Folio/FileObject/readable_real%3f-i.yaml +10 -0
  116. data/doc/ri/Folio/FileObject/relative-i.yaml +12 -0
  117. data/doc/ri/Folio/FileObject/rename-i.yaml +11 -0
  118. data/doc/ri/Folio/FileObject/restat-i.yaml +13 -0
  119. data/doc/ri/Folio/FileObject/rm-i.yaml +12 -0
  120. data/doc/ri/Folio/FileObject/rm_f-i.yaml +12 -0
  121. data/doc/ri/Folio/FileObject/setgid%3f-i.yaml +10 -0
  122. data/doc/ri/Folio/FileObject/setuid%3f-i.yaml +10 -0
  123. data/doc/ri/Folio/FileObject/size%3f-i.yaml +10 -0
  124. data/doc/ri/Folio/FileObject/size-i.yaml +10 -0
  125. data/doc/ri/Folio/FileObject/socket%3f-i.yaml +10 -0
  126. data/doc/ri/Folio/FileObject/split-i.yaml +12 -0
  127. data/doc/ri/Folio/FileObject/stat%21-i.yaml +12 -0
  128. data/doc/ri/Folio/FileObject/stat-i.yaml +12 -0
  129. data/doc/ri/Folio/FileObject/sticky%3f-i.yaml +10 -0
  130. data/doc/ri/Folio/FileObject/symlink-i.yaml +11 -0
  131. data/doc/ri/Folio/FileObject/symlink_force-i.yaml +11 -0
  132. data/doc/ri/Folio/FileObject/to_s-i.yaml +12 -0
  133. data/doc/ri/Folio/FileObject/touch-i.yaml +10 -0
  134. data/doc/ri/Folio/FileObject/unlink-i.yaml +15 -0
  135. data/doc/ri/Folio/FileObject/unlink_force-i.yaml +13 -0
  136. data/doc/ri/Folio/FileObject/util-i.yaml +10 -0
  137. data/doc/ri/Folio/FileObject/utime-i.yaml +10 -0
  138. data/doc/ri/Folio/FileObject/writable%3f-i.yaml +10 -0
  139. data/doc/ri/Folio/FileObject/writable_real%3f-i.yaml +10 -0
  140. data/doc/ri/Folio/FileObject/zero%3f-i.yaml +10 -0
  141. data/doc/ri/Folio/Link/cdesc-Link.yaml +29 -0
  142. data/doc/ri/Folio/Link/lchmod-i.yaml +10 -0
  143. data/doc/ri/Folio/Link/lchown-i.yaml +10 -0
  144. data/doc/ri/Folio/Link/link%3f-i.yaml +10 -0
  145. data/doc/ri/Folio/Link/lstat-i.yaml +10 -0
  146. data/doc/ri/Folio/Link/method_missing-i.yaml +11 -0
  147. data/doc/ri/Folio/Link/new-c.yaml +10 -0
  148. data/doc/ri/Folio/Link/readlink-i.yaml +10 -0
  149. data/doc/ri/Folio/Link/symlink%3f-i.yaml +10 -0
  150. data/doc/ri/Folio/Pipe/cdesc-Pipe.yaml +17 -0
  151. data/doc/ri/Folio/Pipe/new-c.yaml +10 -0
  152. data/doc/ri/Folio/Pipe/pipe%3f-i.yaml +10 -0
  153. data/doc/ri/Folio/Prompt/%2b-i.yaml +13 -0
  154. data/doc/ri/Folio/Prompt/%2f-i.yaml +12 -0
  155. data/doc/ri/Folio/Prompt/%5b%5d-c.yaml +10 -0
  156. data/doc/ri/Folio/Prompt/cd-i.yaml +10 -0
  157. data/doc/ri/Folio/Prompt/cdesc-Prompt.yaml +89 -0
  158. data/doc/ri/Folio/Prompt/chmod-i.yaml +10 -0
  159. data/doc/ri/Folio/Prompt/chmod_r-i.yaml +10 -0
  160. data/doc/ri/Folio/Prompt/chown-i.yaml +12 -0
  161. data/doc/ri/Folio/Prompt/chown_r-i.yaml +10 -0
  162. data/doc/ri/Folio/Prompt/cp-i.yaml +12 -0
  163. data/doc/ri/Folio/Prompt/cp_r-i.yaml +12 -0
  164. data/doc/ri/Folio/Prompt/directories-i.yaml +12 -0
  165. data/doc/ri/Folio/Prompt/entries-i.yaml +13 -0
  166. data/doc/ri/Folio/Prompt/file-i.yaml +12 -0
  167. data/doc/ri/Folio/Prompt/files-i.yaml +12 -0
  168. data/doc/ri/Folio/Prompt/fileutils-i.yaml +10 -0
  169. data/doc/ri/Folio/Prompt/glob-i.yaml +12 -0
  170. data/doc/ri/Folio/Prompt/install-i.yaml +10 -0
  171. data/doc/ri/Folio/Prompt/ln-i.yaml +12 -0
  172. data/doc/ri/Folio/Prompt/ln_s-i.yaml +12 -0
  173. data/doc/ri/Folio/Prompt/ln_sf-i.yaml +10 -0
  174. data/doc/ri/Folio/Prompt/localize-i.yaml +10 -0
  175. data/doc/ri/Folio/Prompt/ls-i.yaml +12 -0
  176. data/doc/ri/Folio/Prompt/mkdir-i.yaml +10 -0
  177. data/doc/ri/Folio/Prompt/mkdir_p-i.yaml +10 -0
  178. data/doc/ri/Folio/Prompt/mode-i.yaml +12 -0
  179. data/doc/ri/Folio/Prompt/mv-i.yaml +12 -0
  180. data/doc/ri/Folio/Prompt/new-c.yaml +11 -0
  181. data/doc/ri/Folio/Prompt/paths-i.yaml +12 -0
  182. data/doc/ri/Folio/Prompt/pwd-i.yaml +10 -0
  183. data/doc/ri/Folio/Prompt/rm-i.yaml +10 -0
  184. data/doc/ri/Folio/Prompt/rm_r-i.yaml +10 -0
  185. data/doc/ri/Folio/Prompt/rm_rf-i.yaml +10 -0
  186. data/doc/ri/Folio/Prompt/rmdir-i.yaml +10 -0
  187. data/doc/ri/Folio/Prompt/to_s-i.yaml +10 -0
  188. data/doc/ri/Folio/Prompt/touch-i.yaml +12 -0
  189. data/doc/ri/Folio/Socket/cdesc-Socket.yaml +16 -0
  190. data/doc/ri/Folio/Socket/new-c.yaml +10 -0
  191. data/doc/ri/Folio/cdesc-Folio.yaml +15 -0
  192. data/doc/ri/created.rid +1 -0
  193. data/lib/folio/device.rb +29 -0
  194. data/lib/folio/directory.rb +83 -0
  195. data/lib/folio/document.rb +66 -0
  196. data/lib/folio/errors.rb +7 -0
  197. data/lib/folio/fileobject.rb +242 -0
  198. data/lib/folio/link.rb +49 -0
  199. data/lib/folio/pipe.rb +16 -0
  200. data/lib/folio/prompt.rb +239 -0
  201. data/lib/folio/socket.rb +14 -0
  202. data/lib/folio.rb +79 -0
  203. data/test/fixture/bar.txt +0 -0
  204. data/test/fixture/foo.txt +0 -0
  205. data/test/test_folio.rb +28 -0
  206. data/test/test_helper.rb +7 -0
  207. metadata +300 -0
@@ -0,0 +1,1200 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head>
7
+ <title>Class: Folio::FileObject</title>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
10
+
11
+ <script language="JavaScript" type="text/javascript">
12
+ // <![CDATA[
13
+
14
+ function toggleSource( id )
15
+ {
16
+ var elem
17
+ var link
18
+
19
+ if( document.getElementById )
20
+ {
21
+ elem = document.getElementById( id )
22
+ link = document.getElementById( "l_" + id )
23
+ }
24
+ else if ( document.all )
25
+ {
26
+ elem = eval( "document.all." + id )
27
+ link = eval( "document.all.l_" + id )
28
+ }
29
+ else
30
+ return false;
31
+
32
+ if( elem.style.display == "block" )
33
+ {
34
+ elem.style.display = "none"
35
+ link.innerHTML = "show source"
36
+ }
37
+ else
38
+ {
39
+ elem.style.display = "block"
40
+ link.innerHTML = "hide source"
41
+ }
42
+ }
43
+
44
+ function openCode( url )
45
+ {
46
+ window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
47
+ }
48
+ // ]]>
49
+ </script>
50
+ </head>
51
+
52
+ <body>
53
+ <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
54
+ <td class="file-title"><span class="file-title-prefix">Class</span><br />Folio::FileObject</td>
55
+ <td align="right">
56
+ <table cellspacing="0" cellpadding="2">
57
+ <tr valign="top">
58
+ <td>In:</td>
59
+ <td>
60
+ <a href="../../files/lib/folio/fileobject_rb.html">lib/folio/fileobject.rb</a>
61
+ </td>
62
+ </tr>
63
+ <tr>
64
+ <td>Parent:</td>
65
+ <td>
66
+ Object
67
+ </td>
68
+ </tr>
69
+ </table>
70
+ </td>
71
+ </tr>
72
+ </table>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+ <div id="content">
77
+
78
+ <div class="description"><h1>File Object</h1>
79
+ <p>
80
+ Base class for all folio objects.
81
+ </p>
82
+ </div>
83
+
84
+
85
+
86
+ <div class="sectiontitle">Methods</div>
87
+ <ul>
88
+ <li><a href="#M000127">&lt;=&gt;</a></li>
89
+ <li><a href="#M000128">==</a></li>
90
+ <li><a href="#M000067">[]</a></li>
91
+ <li><a href="#M000102">atime</a></li>
92
+ <li><a href="#M000118">basename</a></li>
93
+ <li><a href="#M000098">blockdev?</a></li>
94
+ <li><a href="#M000099">chardev?</a></li>
95
+ <li><a href="#M000087">chmod</a></li>
96
+ <li><a href="#M000088">chown</a></li>
97
+ <li><a href="#M000090">cp</a></li>
98
+ <li><a href="#M000103">ctime</a></li>
99
+ <li><a href="#M000082">delete</a></li>
100
+ <li><a href="#M000085">delete_force</a></li>
101
+ <li><a href="#M000097">directory?</a></li>
102
+ <li><a href="#M000119">dirname</a></li>
103
+ <li><a href="#M000069">exist?</a></li>
104
+ <li><a href="#M000070">exists?</a></li>
105
+ <li><a href="#M000120">extname</a></li>
106
+ <li><a href="#M000096">file?</a></li>
107
+ <li><a href="#M000123">fnmatch</a></li>
108
+ <li><a href="#M000124">fnmatch?</a></li>
109
+ <li><a href="#M000104">grpowned?</a></li>
110
+ <li><a href="#M000105">identical?</a></li>
111
+ <li><a href="#M000125">inspect</a></li>
112
+ <li><a href="#M000091">install</a></li>
113
+ <li><a href="#M000071">link</a></li>
114
+ <li><a href="#M000073">link_force</a></li>
115
+ <li><a href="#M000072">ln</a></li>
116
+ <li><a href="#M000074">ln_f</a></li>
117
+ <li><a href="#M000076">ln_s</a></li>
118
+ <li><a href="#M000078">ln_sf</a></li>
119
+ <li><a href="#M000106">mtime</a></li>
120
+ <li><a href="#M000080">mv</a></li>
121
+ <li><a href="#M000068">new</a></li>
122
+ <li><a href="#M000107">owned?</a></li>
123
+ <li><a href="#M000101">pipe?</a></li>
124
+ <li><a href="#M000108">readable?</a></li>
125
+ <li><a href="#M000109">readable_real?</a></li>
126
+ <li><a href="#M000122">relative</a></li>
127
+ <li><a href="#M000079">rename</a></li>
128
+ <li><a href="#M000094">restat</a></li>
129
+ <li><a href="#M000083">rm</a></li>
130
+ <li><a href="#M000086">rm_f</a></li>
131
+ <li><a href="#M000110">setgid?</a></li>
132
+ <li><a href="#M000111">setuid?</a></li>
133
+ <li><a href="#M000112">size</a></li>
134
+ <li><a href="#M000113">size?</a></li>
135
+ <li><a href="#M000100">socket?</a></li>
136
+ <li><a href="#M000121">split</a></li>
137
+ <li><a href="#M000093">stat</a></li>
138
+ <li><a href="#M000095">stat!</a></li>
139
+ <li><a href="#M000114">sticky?</a></li>
140
+ <li><a href="#M000075">symlink</a></li>
141
+ <li><a href="#M000077">symlink_force</a></li>
142
+ <li><a href="#M000126">to_s</a></li>
143
+ <li><a href="#M000092">touch</a></li>
144
+ <li><a href="#M000081">unlink</a></li>
145
+ <li><a href="#M000084">unlink_force</a></li>
146
+ <li><a href="#M000089">utime</a></li>
147
+ <li><a href="#M000115">writable?</a></li>
148
+ <li><a href="#M000116">writable_real?</a></li>
149
+ <li><a href="#M000117">zero?</a></li>
150
+ </ul>
151
+
152
+
153
+
154
+
155
+ <div class="sectiontitle">Constants</div>
156
+ <table border='0' cellpadding='5'>
157
+ <tr valign='top'>
158
+ <td class="attr-name">Separator</td>
159
+ <td>=</td>
160
+ <td class="attr-value">::File::Separator</td>
161
+ </tr>
162
+ </table>
163
+
164
+ <div class="sectiontitle">Attributes</div>
165
+ <table border='0' cellpadding='5'>
166
+ <tr valign='top'>
167
+ <td class='attr-rw'>
168
+ [R]
169
+ </td>
170
+ <td class='attr-name'>path</td>
171
+ <td class='attr-desc'></td>
172
+ </tr>
173
+ <tr valign='top'>
174
+ <td class='attr-rw'>
175
+ [R]
176
+ </td>
177
+ <td class='attr-name'>relpath</td>
178
+ <td class='attr-desc'></td>
179
+ </tr>
180
+ </table>
181
+
182
+ <div class="sectiontitle">Public Class methods</div>
183
+ <div class="method">
184
+ <div class="title">
185
+ <a name="M000067"></a><b>[]</b>(*path)
186
+ </div>
187
+ <div class="description">
188
+ <p>
189
+ Factory method.
190
+ </p>
191
+ </div>
192
+ <div class="sourcecode">
193
+ <p class="source-link">[ <a href="javascript:toggleSource('M000067_source')" id="l_M000067_source">show source</a> ]</p>
194
+ <div id="M000067_source" class="dyn-source">
195
+ <pre>
196
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 13</span>
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
+ <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
+
200
+ <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>)
201
+
202
+ <span class="ruby-keyword kw">case</span> <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">ftype</span>(<span class="ruby-identifier">path</span>)
203
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'file'</span>
204
+ <span class="ruby-constant">Document</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>)
205
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'directory'</span>
206
+ <span class="ruby-constant">Directory</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>)
207
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'link'</span>
208
+ <span class="ruby-constant">Link</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>)
209
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'characterSpecial'</span>
210
+ <span class="ruby-constant">CharacterDevice</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>)
211
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'blockSpecial'</span>
212
+ <span class="ruby-constant">BlockDevice</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>)
213
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'socket'</span>
214
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span> <span class="ruby-comment cmt"># Socket.new(path) ?</span>
215
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'fifo'</span>
216
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span> <span class="ruby-comment cmt"># Pipe?</span>
217
+ <span class="ruby-keyword kw">else</span> <span class="ruby-comment cmt"># 'unknown'</span>
218
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span>
219
+ <span class="ruby-keyword kw">end</span>
220
+ <span class="ruby-keyword kw">end</span>
221
+ </pre>
222
+ </div>
223
+ </div>
224
+ </div>
225
+ <div class="method">
226
+ <div class="title">
227
+ <a name="M000068"></a><b>new</b>(path)
228
+ </div>
229
+ <div class="sourcecode">
230
+ <p class="source-link">[ <a href="javascript:toggleSource('M000068_source')" id="l_M000068_source">show source</a> ]</p>
231
+ <div id="M000068_source" class="dyn-source">
232
+ <pre>
233
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 40</span>
234
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">path</span>)
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
+ <span class="ruby-ivar">@relpath</span> = <span class="ruby-identifier">path</span>
237
+ <span class="ruby-ivar">@path</span> = <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">path</span>)
238
+ <span class="ruby-keyword kw">end</span>
239
+ </pre>
240
+ </div>
241
+ </div>
242
+ </div>
243
+ <div class="sectiontitle">Public Instance methods</div>
244
+ <div class="method">
245
+ <div class="title">
246
+ <a name="M000127"></a><b>&lt;=&gt;</b>(other)
247
+ </div>
248
+ <div class="sourcecode">
249
+ <p class="source-link">[ <a href="javascript:toggleSource('M000127_source')" id="l_M000127_source">show source</a> ]</p>
250
+ <div id="M000127_source" class="dyn-source">
251
+ <pre>
252
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 225</span>
253
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;=&gt;</span>(<span class="ruby-identifier">other</span>)
254
+ <span class="ruby-identifier">path</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">to_s</span>
255
+ <span class="ruby-keyword kw">end</span>
256
+ </pre>
257
+ </div>
258
+ </div>
259
+ </div>
260
+ <div class="method">
261
+ <div class="title">
262
+ <a name="M000128"></a><b>==</b>(other)
263
+ </div>
264
+ <div class="sourcecode">
265
+ <p class="source-link">[ <a href="javascript:toggleSource('M000128_source')" id="l_M000128_source">show source</a> ]</p>
266
+ <div id="M000128_source" class="dyn-source">
267
+ <pre>
268
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 229</span>
269
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">other</span>)
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
+ <span class="ruby-keyword kw">end</span>
272
+ </pre>
273
+ </div>
274
+ </div>
275
+ </div>
276
+ <div class="method">
277
+ <div class="title">
278
+ <a name="M000102"></a><b>atime</b>()
279
+ </div>
280
+ <div class="sourcecode">
281
+ <p class="source-link">[ <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">show source</a> ]</p>
282
+ <div id="M000102_source" class="dyn-source">
283
+ <pre>
284
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 159</span>
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
+ </pre>
287
+ </div>
288
+ </div>
289
+ </div>
290
+ <div class="method">
291
+ <div class="title">
292
+ <a name="M000118"></a><b>basename</b>()
293
+ </div>
294
+ <div class="sourcecode">
295
+ <p class="source-link">[ <a href="javascript:toggleSource('M000118_source')" id="l_M000118_source">show source</a> ]</p>
296
+ <div id="M000118_source" class="dyn-source">
297
+ <pre>
298
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 180</span>
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
+ </pre>
301
+ </div>
302
+ </div>
303
+ </div>
304
+ <div class="method">
305
+ <div class="title">
306
+ <a name="M000098"></a><b>blockdev?</b>()
307
+ </div>
308
+ <div class="sourcecode">
309
+ <p class="source-link">[ <a href="javascript:toggleSource('M000098_source')" id="l_M000098_source">show source</a> ]</p>
310
+ <div id="M000098_source" class="dyn-source">
311
+ <pre>
312
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 154</span>
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
+ </pre>
315
+ </div>
316
+ </div>
317
+ </div>
318
+ <div class="method">
319
+ <div class="title">
320
+ <a name="M000099"></a><b>chardev?</b>()
321
+ </div>
322
+ <div class="sourcecode">
323
+ <p class="source-link">[ <a href="javascript:toggleSource('M000099_source')" id="l_M000099_source">show source</a> ]</p>
324
+ <div id="M000099_source" class="dyn-source">
325
+ <pre>
326
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 155</span>
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
+ </pre>
329
+ </div>
330
+ </div>
331
+ </div>
332
+ <div class="method">
333
+ <div class="title">
334
+ <a name="M000087"></a><b>chmod</b>(mode)
335
+ </div>
336
+ <div class="sourcecode">
337
+ <p class="source-link">[ <a href="javascript:toggleSource('M000087_source')" id="l_M000087_source">show source</a> ]</p>
338
+ <div id="M000087_source" class="dyn-source">
339
+ <pre>
340
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 105</span>
341
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chmod</span>(<span class="ruby-identifier">mode</span>)
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
+ <span class="ruby-keyword kw">end</span>
344
+ </pre>
345
+ </div>
346
+ </div>
347
+ </div>
348
+ <div class="method">
349
+ <div class="title">
350
+ <a name="M000088"></a><b>chown</b>(user, group)
351
+ </div>
352
+ <div class="sourcecode">
353
+ <p class="source-link">[ <a href="javascript:toggleSource('M000088_source')" id="l_M000088_source">show source</a> ]</p>
354
+ <div id="M000088_source" class="dyn-source">
355
+ <pre>
356
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 109</span>
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
+ <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
+ <span class="ruby-keyword kw">end</span>
360
+ </pre>
361
+ </div>
362
+ </div>
363
+ </div>
364
+ <div class="method">
365
+ <div class="title">
366
+ <a name="M000090"></a><b>cp</b>(dest)
367
+ </div>
368
+ <div class="description">
369
+ <p>
370
+ Copy file to destination path.
371
+ </p>
372
+ </div>
373
+ <div class="sourcecode">
374
+ <p class="source-link">[ <a href="javascript:toggleSource('M000090_source')" id="l_M000090_source">show source</a> ]</p>
375
+ <div id="M000090_source" class="dyn-source">
376
+ <pre>
377
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 124</span>
378
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cp</span>(<span class="ruby-identifier">dest</span>)
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
+ <span class="ruby-keyword kw">end</span>
381
+ </pre>
382
+ </div>
383
+ </div>
384
+ </div>
385
+ <div class="method">
386
+ <div class="title">
387
+ <a name="M000103"></a><b>ctime</b>()
388
+ </div>
389
+ <div class="sourcecode">
390
+ <p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">show source</a> ]</p>
391
+ <div id="M000103_source" class="dyn-source">
392
+ <pre>
393
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 160</span>
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
+ </pre>
396
+ </div>
397
+ </div>
398
+ </div>
399
+ <div class="method">
400
+ <div class="title">
401
+ <a name="M000082"></a><b>delete</b>()
402
+ </div>
403
+ <div class="description">
404
+ <p>
405
+ Alias for <a href="FileObject.html#M000081">unlink</a>
406
+ </p>
407
+ </div>
408
+ </div>
409
+ <div class="method">
410
+ <div class="title">
411
+ <a name="M000085"></a><b>delete_force</b>()
412
+ </div>
413
+ <div class="description">
414
+ <p>
415
+ Alias for <a href="FileObject.html#M000084">unlink_force</a>
416
+ </p>
417
+ </div>
418
+ </div>
419
+ <div class="method">
420
+ <div class="title">
421
+ <a name="M000097"></a><b>directory?</b>()
422
+ </div>
423
+ <div class="sourcecode">
424
+ <p class="source-link">[ <a href="javascript:toggleSource('M000097_source')" id="l_M000097_source">show source</a> ]</p>
425
+ <div id="M000097_source" class="dyn-source">
426
+ <pre>
427
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 153</span>
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
+ </pre>
430
+ </div>
431
+ </div>
432
+ </div>
433
+ <div class="method">
434
+ <div class="title">
435
+ <a name="M000119"></a><b>dirname</b>()
436
+ </div>
437
+ <div class="sourcecode">
438
+ <p class="source-link">[ <a href="javascript:toggleSource('M000119_source')" id="l_M000119_source">show source</a> ]</p>
439
+ <div id="M000119_source" class="dyn-source">
440
+ <pre>
441
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 181</span>
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
+ </pre>
444
+ </div>
445
+ </div>
446
+ </div>
447
+ <div class="method">
448
+ <div class="title">
449
+ <a name="M000069"></a><b>exist?</b>()
450
+ </div>
451
+ <div class="description">
452
+ <p>
453
+ This will alwasy be true, EXCEPT when <a
454
+ href="FileObject.html#M000083">rm</a>, <a
455
+ href="FileObject.html#M000082">delete</a> or <a
456
+ href="FileObject.html#M000081">unlink</a> have been used.
457
+ </p>
458
+ </div>
459
+ <div class="aka">
460
+ This method is also aliased as
461
+ <a href="FileObject.html#M000070">exists?</a>
462
+ </div>
463
+ <div class="sourcecode">
464
+ <p class="source-link">[ <a href="javascript:toggleSource('M000069_source')" id="l_M000069_source">show source</a> ]</p>
465
+ <div id="M000069_source" class="dyn-source">
466
+ <pre>
467
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 53</span>
468
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exist?</span>
469
+ <span class="ruby-operator">::</span><span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">path</span>)
470
+ <span class="ruby-keyword kw">end</span>
471
+ </pre>
472
+ </div>
473
+ </div>
474
+ </div>
475
+ <div class="method">
476
+ <div class="title">
477
+ <a name="M000070"></a><b>exists?</b>()
478
+ </div>
479
+ <div class="description">
480
+ <p>
481
+ Alias for exist?
482
+ </p>
483
+ </div>
484
+ </div>
485
+ <div class="method">
486
+ <div class="title">
487
+ <a name="M000120"></a><b>extname</b>()
488
+ </div>
489
+ <div class="sourcecode">
490
+ <p class="source-link">[ <a href="javascript:toggleSource('M000120_source')" id="l_M000120_source">show source</a> ]</p>
491
+ <div id="M000120_source" class="dyn-source">
492
+ <pre>
493
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 182</span>
494
+ <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
+ </pre>
496
+ </div>
497
+ </div>
498
+ </div>
499
+ <div class="method">
500
+ <div class="title">
501
+ <a name="M000096"></a><b>file?</b>()
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)
516
+ </div>
517
+ <div class="aka">
518
+ This method is also aliased as
519
+ <a href="FileObject.html#M000124">fnmatch?</a>
520
+ </div>
521
+ <div class="sourcecode">
522
+ <p class="source-link">[ <a href="javascript:toggleSource('M000123_source')" id="l_M000123_source">show source</a> ]</p>
523
+ <div id="M000123_source" class="dyn-source">
524
+ <pre>
525
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 209</span>
526
+ <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
+ <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
+ <span class="ruby-keyword kw">end</span>
529
+ </pre>
530
+ </div>
531
+ </div>
532
+ </div>
533
+ <div class="method">
534
+ <div class="title">
535
+ <a name="M000124"></a><b>fnmatch?</b>(pattern, flags=0)
536
+ </div>
537
+ <div class="description">
538
+ <p>
539
+ Alias for <a href="FileObject.html#M000123">fnmatch</a>
540
+ </p>
541
+ </div>
542
+ </div>
543
+ <div class="method">
544
+ <div class="title">
545
+ <a name="M000104"></a><b>grpowned?</b>()
546
+ </div>
547
+ <div class="sourcecode">
548
+ <p class="source-link">[ <a href="javascript:toggleSource('M000104_source')" id="l_M000104_source">show source</a> ]</p>
549
+ <div id="M000104_source" class="dyn-source">
550
+ <pre>
551
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 161</span>
552
+ <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
+ </pre>
554
+ </div>
555
+ </div>
556
+ </div>
557
+ <div class="method">
558
+ <div class="title">
559
+ <a name="M000105"></a><b>identical?</b>()
560
+ </div>
561
+ <div class="sourcecode">
562
+ <p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">show source</a> ]</p>
563
+ <div id="M000105_source" class="dyn-source">
564
+ <pre>
565
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 162</span>
566
+ <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
+ </pre>
568
+ </div>
569
+ </div>
570
+ </div>
571
+ <div class="method">
572
+ <div class="title">
573
+ <a name="M000125"></a><b>inspect</b>()
574
+ </div>
575
+ <div class="description">
576
+ <p>
577
+ Inspect returns the path string <a
578
+ href="FileObject.html#M000122">relative</a> to the current working
579
+ directory.
580
+ </p>
581
+ </div>
582
+ <div class="sourcecode">
583
+ <p class="source-link">[ <a href="javascript:toggleSource('M000125_source')" id="l_M000125_source">show source</a> ]</p>
584
+ <div id="M000125_source" class="dyn-source">
585
+ <pre>
586
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 220</span>
587
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>; <span class="ruby-node">&quot;#{relative}&quot;</span>; <span class="ruby-keyword kw">end</span>
588
+ </pre>
589
+ </div>
590
+ </div>
591
+ </div>
592
+ <div class="method">
593
+ <div class="title">
594
+ <a name="M000091"></a><b>install</b>(dest, mode=nil)
595
+ </div>
596
+ <div class="description">
597
+ <p>
598
+ Install file to destination path.
599
+ </p>
600
+ </div>
601
+ <div class="sourcecode">
602
+ <p class="source-link">[ <a href="javascript:toggleSource('M000091_source')" id="l_M000091_source">show source</a> ]</p>
603
+ <div id="M000091_source" class="dyn-source">
604
+ <pre>
605
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 129</span>
606
+ <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
+ <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
+ <span class="ruby-keyword kw">end</span>
609
+ </pre>
610
+ </div>
611
+ </div>
612
+ </div>
613
+ <div class="method">
614
+ <div class="title">
615
+ <a name="M000071"></a><b>link</b>(new)
616
+ </div>
617
+ <div class="aka">
618
+ This method is also aliased as
619
+ <a href="FileObject.html#M000072">ln</a>
620
+ </div>
621
+ <div class="sourcecode">
622
+ <p class="source-link">[ <a href="javascript:toggleSource('M000071_source')" id="l_M000071_source">show source</a> ]</p>
623
+ <div id="M000071_source" class="dyn-source">
624
+ <pre>
625
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 62</span>
626
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">link</span>(<span class="ruby-identifier">new</span>)
627
+ <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
+ <span class="ruby-keyword kw">end</span>
629
+ </pre>
630
+ </div>
631
+ </div>
632
+ </div>
633
+ <div class="method">
634
+ <div class="title">
635
+ <a name="M000073"></a><b>link_force</b>(new)
636
+ </div>
637
+ <div class="aka">
638
+ This method is also aliased as
639
+ <a href="FileObject.html#M000074">ln_f</a>
640
+ </div>
641
+ <div class="sourcecode">
642
+ <p class="source-link">[ <a href="javascript:toggleSource('M000073_source')" id="l_M000073_source">show source</a> ]</p>
643
+ <div id="M000073_source" class="dyn-source">
644
+ <pre>
645
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 67</span>
646
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">link_force</span>(<span class="ruby-identifier">new</span>)
647
+ <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">new</span>)
648
+ <span class="ruby-identifier">link</span>(<span class="ruby-identifier">new</span>)
649
+ <span class="ruby-keyword kw">end</span>
650
+ </pre>
651
+ </div>
652
+ </div>
653
+ </div>
654
+ <div class="method">
655
+ <div class="title">
656
+ <a name="M000072"></a><b>ln</b>(new)
657
+ </div>
658
+ <div class="description">
659
+ <p>
660
+ Alias for <a href="FileObject.html#M000071">link</a>
661
+ </p>
662
+ </div>
663
+ </div>
664
+ <div class="method">
665
+ <div class="title">
666
+ <a name="M000074"></a><b>ln_f</b>(new)
667
+ </div>
668
+ <div class="description">
669
+ <p>
670
+ Alias for <a href="FileObject.html#M000073">link_force</a>
671
+ </p>
672
+ </div>
673
+ </div>
674
+ <div class="method">
675
+ <div class="title">
676
+ <a name="M000076"></a><b>ln_s</b>(new)
677
+ </div>
678
+ <div class="description">
679
+ <p>
680
+ Alias for <a href="FileObject.html#M000075">symlink</a>
681
+ </p>
682
+ </div>
683
+ </div>
684
+ <div class="method">
685
+ <div class="title">
686
+ <a name="M000078"></a><b>ln_sf</b>(new)
687
+ </div>
688
+ <div class="description">
689
+ <p>
690
+ Alias for <a href="FileObject.html#M000077">symlink_force</a>
691
+ </p>
692
+ </div>
693
+ </div>
694
+ <div class="method">
695
+ <div class="title">
696
+ <a name="M000106"></a><b>mtime</b>()
697
+ </div>
698
+ <div class="sourcecode">
699
+ <p class="source-link">[ <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">show source</a> ]</p>
700
+ <div id="M000106_source" class="dyn-source">
701
+ <pre>
702
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 163</span>
703
+ <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
+ </pre>
705
+ </div>
706
+ </div>
707
+ </div>
708
+ <div class="method">
709
+ <div class="title">
710
+ <a name="M000080"></a><b>mv</b>(dest)
711
+ </div>
712
+ <div class="description">
713
+ <p>
714
+ Alias for <a href="FileObject.html#M000079">rename</a>
715
+ </p>
716
+ </div>
717
+ </div>
718
+ <div class="method">
719
+ <div class="title">
720
+ <a name="M000107"></a><b>owned?</b>()
721
+ </div>
722
+ <div class="sourcecode">
723
+ <p class="source-link">[ <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show source</a> ]</p>
724
+ <div id="M000107_source" class="dyn-source">
725
+ <pre>
726
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 164</span>
727
+ <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
+ </pre>
729
+ </div>
730
+ </div>
731
+ </div>
732
+ <div class="method">
733
+ <div class="title">
734
+ <a name="M000101"></a><b>pipe?</b>()
735
+ </div>
736
+ <div class="sourcecode">
737
+ <p class="source-link">[ <a href="javascript:toggleSource('M000101_source')" id="l_M000101_source">show source</a> ]</p>
738
+ <div id="M000101_source" class="dyn-source">
739
+ <pre>
740
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 157</span>
741
+ <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
+ </pre>
743
+ </div>
744
+ </div>
745
+ </div>
746
+ <div class="method">
747
+ <div class="title">
748
+ <a name="M000108"></a><b>readable?</b>()
749
+ </div>
750
+ <div class="sourcecode">
751
+ <p class="source-link">[ <a href="javascript:toggleSource('M000108_source')" id="l_M000108_source">show source</a> ]</p>
752
+ <div id="M000108_source" class="dyn-source">
753
+ <pre>
754
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 165</span>
755
+ <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
+ </pre>
757
+ </div>
758
+ </div>
759
+ </div>
760
+ <div class="method">
761
+ <div class="title">
762
+ <a name="M000109"></a><b>readable_real?</b>()
763
+ </div>
764
+ <div class="sourcecode">
765
+ <p class="source-link">[ <a href="javascript:toggleSource('M000109_source')" id="l_M000109_source">show source</a> ]</p>
766
+ <div id="M000109_source" class="dyn-source">
767
+ <pre>
768
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 166</span>
769
+ <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
+ </pre>
771
+ </div>
772
+ </div>
773
+ </div>
774
+ <div class="method">
775
+ <div class="title">
776
+ <a name="M000122"></a><b>relative</b>()
777
+ </div>
778
+ <div class="description">
779
+ <p>
780
+ Gives path <a href="FileObject.html#M000122">relative</a> to current
781
+ working directory. If current is below path one step then it uses
782
+ &#8217;..&#8217;, further below and it returns the full path.
783
+ </p>
784
+ </div>
785
+ <div class="sourcecode">
786
+ <p class="source-link">[ <a href="javascript:toggleSource('M000122_source')" id="l_M000122_source">show source</a> ]</p>
787
+ <div id="M000122_source" class="dyn-source">
788
+ <pre>
789
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 190</span>
790
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">relative</span>
791
+ <span class="ruby-identifier">pwd</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">pwd</span>
792
+ <span class="ruby-identifier">pth</span> = <span class="ruby-identifier">path</span>
793
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">pth</span>.<span class="ruby-identifier">index</span>(<span class="ruby-identifier">pwd</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
794
+ <span class="ruby-identifier">r</span> = <span class="ruby-identifier">pth</span>[<span class="ruby-identifier">pwd</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">+</span><span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
795
+ <span class="ruby-identifier">r</span> = <span class="ruby-value str">'.'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">r</span>
796
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">r</span>
797
+ <span class="ruby-keyword kw">else</span>
798
+ <span class="ruby-identifier">pwd</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">pwd</span>)
799
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">pth</span>.<span class="ruby-identifier">index</span>(<span class="ruby-identifier">pwd</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
800
+ <span class="ruby-identifier">r</span> = <span class="ruby-identifier">pth</span>[<span class="ruby-identifier">pwd</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">+</span><span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
801
+ <span class="ruby-keyword kw">return</span> <span class="ruby-value str">'..'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">r</span>
802
+ <span class="ruby-keyword kw">return</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">'..'</span>, <span class="ruby-identifier">r</span>)
803
+ <span class="ruby-keyword kw">else</span>
804
+ <span class="ruby-identifier">pth</span>
805
+ <span class="ruby-keyword kw">end</span>
806
+ <span class="ruby-keyword kw">end</span>
807
+ <span class="ruby-keyword kw">end</span>
808
+ </pre>
809
+ </div>
810
+ </div>
811
+ </div>
812
+ <div class="method">
813
+ <div class="title">
814
+ <a name="M000079"></a><b>rename</b>(dest)
815
+ </div>
816
+ <div class="aka">
817
+ This method is also aliased as
818
+ <a href="FileObject.html#M000080">mv</a>
819
+ </div>
820
+ <div class="sourcecode">
821
+ <p class="source-link">[ <a href="javascript:toggleSource('M000079_source')" id="l_M000079_source">show source</a> ]</p>
822
+ <div id="M000079_source" class="dyn-source">
823
+ <pre>
824
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 84</span>
825
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rename</span>(<span class="ruby-identifier">dest</span>)
826
+ <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
+ <span class="ruby-ivar">@relpath</span> = <span class="ruby-identifier">dest</span>
828
+ <span class="ruby-ivar">@path</span> = <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">dest</span>)
829
+ <span class="ruby-keyword kw">end</span>
830
+ </pre>
831
+ </div>
832
+ </div>
833
+ </div>
834
+ <div class="method">
835
+ <div class="title">
836
+ <a name="M000094"></a><b>restat</b>()
837
+ </div>
838
+ <div class="description">
839
+ <p>
840
+ Refresh status cache.
841
+ </p>
842
+ </div>
843
+ <div class="aka">
844
+ This method is also aliased as
845
+ <a href="FileObject.html#M000095">stat!</a>
846
+ </div>
847
+ <div class="sourcecode">
848
+ <p class="source-link">[ <a href="javascript:toggleSource('M000094_source')" id="l_M000094_source">show source</a> ]</p>
849
+ <div id="M000094_source" class="dyn-source">
850
+ <pre>
851
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 147</span>
852
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restat</span>
853
+ <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
+ <span class="ruby-keyword kw">end</span>
855
+ </pre>
856
+ </div>
857
+ </div>
858
+ </div>
859
+ <div class="method">
860
+ <div class="title">
861
+ <a name="M000083"></a><b>rm</b>()
862
+ </div>
863
+ <div class="description">
864
+ <p>
865
+ Alias for <a href="FileObject.html#M000081">unlink</a>
866
+ </p>
867
+ </div>
868
+ </div>
869
+ <div class="method">
870
+ <div class="title">
871
+ <a name="M000086"></a><b>rm_f</b>()
872
+ </div>
873
+ <div class="description">
874
+ <p>
875
+ Alias for <a href="FileObject.html#M000084">unlink_force</a>
876
+ </p>
877
+ </div>
878
+ </div>
879
+ <div class="method">
880
+ <div class="title">
881
+ <a name="M000110"></a><b>setgid?</b>()
882
+ </div>
883
+ <div class="sourcecode">
884
+ <p class="source-link">[ <a href="javascript:toggleSource('M000110_source')" id="l_M000110_source">show source</a> ]</p>
885
+ <div id="M000110_source" class="dyn-source">
886
+ <pre>
887
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 167</span>
888
+ <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
+ </pre>
890
+ </div>
891
+ </div>
892
+ </div>
893
+ <div class="method">
894
+ <div class="title">
895
+ <a name="M000111"></a><b>setuid?</b>()
896
+ </div>
897
+ <div class="sourcecode">
898
+ <p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">show source</a> ]</p>
899
+ <div id="M000111_source" class="dyn-source">
900
+ <pre>
901
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 168</span>
902
+ <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
+ </pre>
904
+ </div>
905
+ </div>
906
+ </div>
907
+ <div class="method">
908
+ <div class="title">
909
+ <a name="M000112"></a><b>size</b>()
910
+ </div>
911
+ <div class="sourcecode">
912
+ <p class="source-link">[ <a href="javascript:toggleSource('M000112_source')" id="l_M000112_source">show source</a> ]</p>
913
+ <div id="M000112_source" class="dyn-source">
914
+ <pre>
915
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 169</span>
916
+ <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
+ </pre>
918
+ </div>
919
+ </div>
920
+ </div>
921
+ <div class="method">
922
+ <div class="title">
923
+ <a name="M000113"></a><b>size?</b>()
924
+ </div>
925
+ <div class="sourcecode">
926
+ <p class="source-link">[ <a href="javascript:toggleSource('M000113_source')" id="l_M000113_source">show source</a> ]</p>
927
+ <div id="M000113_source" class="dyn-source">
928
+ <pre>
929
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 170</span>
930
+ <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
+ </pre>
932
+ </div>
933
+ </div>
934
+ </div>
935
+ <div class="method">
936
+ <div class="title">
937
+ <a name="M000100"></a><b>socket?</b>()
938
+ </div>
939
+ <div class="sourcecode">
940
+ <p class="source-link">[ <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">show source</a> ]</p>
941
+ <div id="M000100_source" class="dyn-source">
942
+ <pre>
943
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 156</span>
944
+ <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
+ </pre>
946
+ </div>
947
+ </div>
948
+ </div>
949
+ <div class="method">
950
+ <div class="title">
951
+ <a name="M000121"></a><b>split</b>()
952
+ </div>
953
+ <div class="description">
954
+ <p>
955
+ TODO: I don&#8216;t like the name of this.
956
+ </p>
957
+ </div>
958
+ <div class="sourcecode">
959
+ <p class="source-link">[ <a href="javascript:toggleSource('M000121_source')" id="l_M000121_source">show source</a> ]</p>
960
+ <div id="M000121_source" class="dyn-source">
961
+ <pre>
962
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 185</span>
963
+ <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
+ </pre>
965
+ </div>
966
+ </div>
967
+ </div>
968
+ <div class="method">
969
+ <div class="title">
970
+ <a name="M000093"></a><b>stat</b>()
971
+ </div>
972
+ <div class="description">
973
+ <p>
974
+ Get <a href="FileObject.html#M000093">stat</a> and cache it.
975
+ </p>
976
+ </div>
977
+ <div class="sourcecode">
978
+ <p class="source-link">[ <a href="javascript:toggleSource('M000093_source')" id="l_M000093_source">show source</a> ]</p>
979
+ <div id="M000093_source" class="dyn-source">
980
+ <pre>
981
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 142</span>
982
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stat</span>
983
+ <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
+ <span class="ruby-keyword kw">end</span>
985
+ </pre>
986
+ </div>
987
+ </div>
988
+ </div>
989
+ <div class="method">
990
+ <div class="title">
991
+ <a name="M000095"></a><b>stat!</b>()
992
+ </div>
993
+ <div class="description">
994
+ <p>
995
+ Alias for <a href="FileObject.html#M000094">restat</a>
996
+ </p>
997
+ </div>
998
+ </div>
999
+ <div class="method">
1000
+ <div class="title">
1001
+ <a name="M000114"></a><b>sticky?</b>()
1002
+ </div>
1003
+ <div class="sourcecode">
1004
+ <p class="source-link">[ <a href="javascript:toggleSource('M000114_source')" id="l_M000114_source">show source</a> ]</p>
1005
+ <div id="M000114_source" class="dyn-source">
1006
+ <pre>
1007
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 171</span>
1008
+ <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
+ </pre>
1010
+ </div>
1011
+ </div>
1012
+ </div>
1013
+ <div class="method">
1014
+ <div class="title">
1015
+ <a name="M000075"></a><b>symlink</b>(new)
1016
+ </div>
1017
+ <div class="aka">
1018
+ This method is also aliased as
1019
+ <a href="FileObject.html#M000076">ln_s</a>
1020
+ </div>
1021
+ <div class="sourcecode">
1022
+ <p class="source-link">[ <a href="javascript:toggleSource('M000075_source')" id="l_M000075_source">show source</a> ]</p>
1023
+ <div id="M000075_source" class="dyn-source">
1024
+ <pre>
1025
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 73</span>
1026
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symlink</span>(<span class="ruby-identifier">new</span>)
1027
+ <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
+ <span class="ruby-keyword kw">end</span>
1029
+ </pre>
1030
+ </div>
1031
+ </div>
1032
+ </div>
1033
+ <div class="method">
1034
+ <div class="title">
1035
+ <a name="M000077"></a><b>symlink_force</b>(new)
1036
+ </div>
1037
+ <div class="aka">
1038
+ This method is also aliased as
1039
+ <a href="FileObject.html#M000078">ln_sf</a>
1040
+ </div>
1041
+ <div class="sourcecode">
1042
+ <p class="source-link">[ <a href="javascript:toggleSource('M000077_source')" id="l_M000077_source">show source</a> ]</p>
1043
+ <div id="M000077_source" class="dyn-source">
1044
+ <pre>
1045
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 78</span>
1046
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symlink_force</span>(<span class="ruby-identifier">new</span>)
1047
+ <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">new</span>)
1048
+ <span class="ruby-identifier">symlink</span>(<span class="ruby-identifier">new</span>)
1049
+ <span class="ruby-keyword kw">end</span>
1050
+ </pre>
1051
+ </div>
1052
+ </div>
1053
+ </div>
1054
+ <div class="method">
1055
+ <div class="title">
1056
+ <a name="M000126"></a><b>to_s</b>()
1057
+ </div>
1058
+ <div class="description">
1059
+ <p>
1060
+ Returns the path string.
1061
+ </p>
1062
+ </div>
1063
+ <div class="sourcecode">
1064
+ <p class="source-link">[ <a href="javascript:toggleSource('M000126_source')" id="l_M000126_source">show source</a> ]</p>
1065
+ <div id="M000126_source" class="dyn-source">
1066
+ <pre>
1067
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 223</span>
1068
+ <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
+ </pre>
1070
+ </div>
1071
+ </div>
1072
+ </div>
1073
+ <div class="method">
1074
+ <div class="title">
1075
+ <a name="M000092"></a><b>touch</b>()
1076
+ </div>
1077
+ <div class="sourcecode">
1078
+ <p class="source-link">[ <a href="javascript:toggleSource('M000092_source')" id="l_M000092_source">show source</a> ]</p>
1079
+ <div id="M000092_source" class="dyn-source">
1080
+ <pre>
1081
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 133</span>
1082
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">touch</span>
1083
+ <span class="ruby-identifier">util</span>.<span class="ruby-identifier">touch</span>(<span class="ruby-identifier">path</span>)
1084
+ <span class="ruby-keyword kw">end</span>
1085
+ </pre>
1086
+ </div>
1087
+ </div>
1088
+ </div>
1089
+ <div class="method">
1090
+ <div class="title">
1091
+ <a name="M000081"></a><b>unlink</b>()
1092
+ </div>
1093
+ <div class="description">
1094
+ <p>
1095
+ how to handle &#8212;b/c it disappears?
1096
+ </p>
1097
+ </div>
1098
+ <div class="aka">
1099
+ This method is also aliased as
1100
+ <a href="FileObject.html#M000082">delete</a>
1101
+ <a href="FileObject.html#M000083">rm</a>
1102
+ </div>
1103
+ <div class="sourcecode">
1104
+ <p class="source-link">[ <a href="javascript:toggleSource('M000081_source')" id="l_M000081_source">show source</a> ]</p>
1105
+ <div id="M000081_source" class="dyn-source">
1106
+ <pre>
1107
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 92</span>
1108
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unlink</span>
1109
+ <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">path</span>)
1110
+ <span class="ruby-keyword kw">end</span>
1111
+ </pre>
1112
+ </div>
1113
+ </div>
1114
+ </div>
1115
+ <div class="method">
1116
+ <div class="title">
1117
+ <a name="M000084"></a><b>unlink_force</b>()
1118
+ </div>
1119
+ <div class="aka">
1120
+ This method is also aliased as
1121
+ <a href="FileObject.html#M000085">delete_force</a>
1122
+ <a href="FileObject.html#M000086">rm_f</a>
1123
+ </div>
1124
+ <div class="sourcecode">
1125
+ <p class="source-link">[ <a href="javascript:toggleSource('M000084_source')" id="l_M000084_source">show source</a> ]</p>
1126
+ <div id="M000084_source" class="dyn-source">
1127
+ <pre>
1128
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 98</span>
1129
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unlink_force</span>
1130
+ <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">new</span>)
1131
+ <span class="ruby-identifier">unlink</span>(<span class="ruby-identifier">path</span>)
1132
+ <span class="ruby-keyword kw">end</span>
1133
+ </pre>
1134
+ </div>
1135
+ </div>
1136
+ </div>
1137
+ <div class="method">
1138
+ <div class="title">
1139
+ <a name="M000089"></a><b>utime</b>(atime, mtime)
1140
+ </div>
1141
+ <div class="sourcecode">
1142
+ <p class="source-link">[ <a href="javascript:toggleSource('M000089_source')" id="l_M000089_source">show source</a> ]</p>
1143
+ <div id="M000089_source" class="dyn-source">
1144
+ <pre>
1145
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 113</span>
1146
+ <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
+ <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
+ <span class="ruby-keyword kw">end</span>
1149
+ </pre>
1150
+ </div>
1151
+ </div>
1152
+ </div>
1153
+ <div class="method">
1154
+ <div class="title">
1155
+ <a name="M000115"></a><b>writable?</b>()
1156
+ </div>
1157
+ <div class="sourcecode">
1158
+ <p class="source-link">[ <a href="javascript:toggleSource('M000115_source')" id="l_M000115_source">show source</a> ]</p>
1159
+ <div id="M000115_source" class="dyn-source">
1160
+ <pre>
1161
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 172</span>
1162
+ <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
+ </pre>
1164
+ </div>
1165
+ </div>
1166
+ </div>
1167
+ <div class="method">
1168
+ <div class="title">
1169
+ <a name="M000116"></a><b>writable_real?</b>()
1170
+ </div>
1171
+ <div class="sourcecode">
1172
+ <p class="source-link">[ <a href="javascript:toggleSource('M000116_source')" id="l_M000116_source">show source</a> ]</p>
1173
+ <div id="M000116_source" class="dyn-source">
1174
+ <pre>
1175
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 173</span>
1176
+ <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
+ </pre>
1178
+ </div>
1179
+ </div>
1180
+ </div>
1181
+ <div class="method">
1182
+ <div class="title">
1183
+ <a name="M000117"></a><b>zero?</b>()
1184
+ </div>
1185
+ <div class="sourcecode">
1186
+ <p class="source-link">[ <a href="javascript:toggleSource('M000117_source')" id="l_M000117_source">show source</a> ]</p>
1187
+ <div id="M000117_source" class="dyn-source">
1188
+ <pre>
1189
+ <span class="ruby-comment cmt"># File lib/folio/fileobject.rb, line 174</span>
1190
+ <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
+ </pre>
1192
+ </div>
1193
+ </div>
1194
+ </div>
1195
+ </div>
1196
+
1197
+ </div>
1198
+
1199
+ </body>
1200
+ </html>