folio 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +675 -0
- data/MANIFEST +234 -0
- data/METADATA +8 -0
- data/NEWS +9 -0
- data/README +69 -0
- data/demo/sample1/foo/foo.txt +1 -0
- data/demo/sample1/tryme.rb +14 -0
- data/doc/rdoc/classes/Folio/BlockDevice.html +117 -0
- data/doc/rdoc/classes/Folio/CharacterDevice.html +117 -0
- data/doc/rdoc/classes/Folio/Device.html +119 -0
- data/doc/rdoc/classes/Folio/Directory.html +420 -0
- data/doc/rdoc/classes/Folio/Document.html +261 -0
- data/doc/rdoc/classes/Folio/FileNotFound.html +92 -0
- data/doc/rdoc/classes/Folio/FileObject.html +1200 -0
- data/doc/rdoc/classes/Folio/Link.html +238 -0
- data/doc/rdoc/classes/Folio/Pipe.html +131 -0
- data/doc/rdoc/classes/Folio/Prompt.html +796 -0
- data/doc/rdoc/classes/Folio/Socket.html +115 -0
- data/doc/rdoc/classes/Folio.html +148 -0
- data/doc/rdoc/created.rid +1 -0
- data/doc/rdoc/files/COPYING.html +992 -0
- data/doc/rdoc/files/METADATA.html +101 -0
- data/doc/rdoc/files/NEWS.html +102 -0
- data/doc/rdoc/files/README.html +171 -0
- data/doc/rdoc/files/lib/folio/device_rb.html +96 -0
- data/doc/rdoc/files/lib/folio/directory_rb.html +96 -0
- data/doc/rdoc/files/lib/folio/document_rb.html +96 -0
- data/doc/rdoc/files/lib/folio/errors_rb.html +92 -0
- data/doc/rdoc/files/lib/folio/fileobject_rb.html +92 -0
- data/doc/rdoc/files/lib/folio/link_rb.html +96 -0
- data/doc/rdoc/files/lib/folio/pipe_rb.html +96 -0
- data/doc/rdoc/files/lib/folio/prompt_rb.html +92 -0
- data/doc/rdoc/files/lib/folio/socket_rb.html +96 -0
- data/doc/rdoc/files/lib/folio_rb.html +105 -0
- data/doc/rdoc/fr_class_index.html +58 -0
- data/doc/rdoc/fr_file_index.html +60 -0
- data/doc/rdoc/fr_method_index.html +185 -0
- data/doc/rdoc/index.html +26 -0
- data/doc/rdoc/rdoc-style.css +175 -0
- data/doc/ri/Folio/BlockDevice/blockdev%3f-i.yaml +10 -0
- data/doc/ri/Folio/BlockDevice/cdesc-BlockDevice.yaml +18 -0
- data/doc/ri/Folio/CharacterDevice/cdesc-CharacterDevice.yaml +18 -0
- data/doc/ri/Folio/CharacterDevice/chardev%3f-i.yaml +10 -0
- data/doc/ri/Folio/Device/cdesc-Device.yaml +18 -0
- data/doc/ri/Folio/Device/new-c.yaml +10 -0
- data/doc/ri/Folio/Directory/%2b-i.yaml +12 -0
- data/doc/ri/Folio/Directory/%2f-i.yaml +13 -0
- data/doc/ri/Folio/Directory/cd-i.yaml +12 -0
- data/doc/ri/Folio/Directory/cdesc-Directory.yaml +49 -0
- data/doc/ri/Folio/Directory/chdir-i.yaml +11 -0
- data/doc/ri/Folio/Directory/chmod_r-i.yaml +10 -0
- data/doc/ri/Folio/Directory/chown_r-i.yaml +12 -0
- data/doc/ri/Folio/Directory/chroot-i.yaml +10 -0
- data/doc/ri/Folio/Directory/cp_r-i.yaml +12 -0
- data/doc/ri/Folio/Directory/delete-i.yaml +12 -0
- data/doc/ri/Folio/Directory/directory%3f-i.yaml +10 -0
- data/doc/ri/Folio/Directory/entries-i.yaml +12 -0
- data/doc/ri/Folio/Directory/foreach-i.yaml +10 -0
- data/doc/ri/Folio/Directory/new-c.yaml +10 -0
- data/doc/ri/Folio/Directory/paths-i.yaml +12 -0
- data/doc/ri/Folio/Directory/rm_r-i.yaml +10 -0
- data/doc/ri/Folio/Directory/rm_rf-i.yaml +10 -0
- data/doc/ri/Folio/Directory/rmdir-i.yaml +13 -0
- data/doc/ri/Folio/Directory/unlink-i.yaml +12 -0
- data/doc/ri/Folio/Document/cdesc-Document.yaml +34 -0
- data/doc/ri/Folio/Document/delete-i.yaml +10 -0
- data/doc/ri/Folio/Document/executable%3f-i.yaml +10 -0
- data/doc/ri/Folio/Document/executable_real%3f-i.yaml +10 -0
- data/doc/ri/Folio/Document/file%3f-i.yaml +10 -0
- data/doc/ri/Folio/Document/intialize-i.yaml +10 -0
- data/doc/ri/Folio/Document/open-i.yaml +10 -0
- data/doc/ri/Folio/Document/read-i.yaml +10 -0
- data/doc/ri/Folio/Document/readlines-i.yaml +10 -0
- data/doc/ri/Folio/Document/truncate-i.yaml +10 -0
- data/doc/ri/Folio/Document/unlink-i.yaml +12 -0
- data/doc/ri/Folio/FileNotFound/cdesc-FileNotFound.yaml +15 -0
- data/doc/ri/Folio/FileObject/%3c%3d%3e-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/%3d%3d-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/%5b%5d-c.yaml +12 -0
- data/doc/ri/Folio/FileObject/atime-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/basename-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/blockdev%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/cdesc-FileObject.yaml +154 -0
- data/doc/ri/Folio/FileObject/chardev%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/chmod-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/chown-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/cp-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/ctime-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/delete-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/delete_force-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/directory%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/dirname-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/exist%3f-i.yaml +13 -0
- data/doc/ri/Folio/FileObject/exists%3f-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/extname-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/file%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/fnmatch%3f-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/fnmatch-i.yaml +11 -0
- data/doc/ri/Folio/FileObject/grpowned%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/identical%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/inspect-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/install-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/link-i.yaml +11 -0
- data/doc/ri/Folio/FileObject/link_force-i.yaml +11 -0
- data/doc/ri/Folio/FileObject/ln-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/ln_f-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/ln_s-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/ln_sf-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/mtime-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/mv-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/new-c.yaml +10 -0
- data/doc/ri/Folio/FileObject/owned%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/pipe%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/readable%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/readable_real%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/relative-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/rename-i.yaml +11 -0
- data/doc/ri/Folio/FileObject/restat-i.yaml +13 -0
- data/doc/ri/Folio/FileObject/rm-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/rm_f-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/setgid%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/setuid%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/size%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/size-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/socket%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/split-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/stat%21-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/stat-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/sticky%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/symlink-i.yaml +11 -0
- data/doc/ri/Folio/FileObject/symlink_force-i.yaml +11 -0
- data/doc/ri/Folio/FileObject/to_s-i.yaml +12 -0
- data/doc/ri/Folio/FileObject/touch-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/unlink-i.yaml +15 -0
- data/doc/ri/Folio/FileObject/unlink_force-i.yaml +13 -0
- data/doc/ri/Folio/FileObject/util-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/utime-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/writable%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/writable_real%3f-i.yaml +10 -0
- data/doc/ri/Folio/FileObject/zero%3f-i.yaml +10 -0
- data/doc/ri/Folio/Link/cdesc-Link.yaml +29 -0
- data/doc/ri/Folio/Link/lchmod-i.yaml +10 -0
- data/doc/ri/Folio/Link/lchown-i.yaml +10 -0
- data/doc/ri/Folio/Link/link%3f-i.yaml +10 -0
- data/doc/ri/Folio/Link/lstat-i.yaml +10 -0
- data/doc/ri/Folio/Link/method_missing-i.yaml +11 -0
- data/doc/ri/Folio/Link/new-c.yaml +10 -0
- data/doc/ri/Folio/Link/readlink-i.yaml +10 -0
- data/doc/ri/Folio/Link/symlink%3f-i.yaml +10 -0
- data/doc/ri/Folio/Pipe/cdesc-Pipe.yaml +17 -0
- data/doc/ri/Folio/Pipe/new-c.yaml +10 -0
- data/doc/ri/Folio/Pipe/pipe%3f-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/%2b-i.yaml +13 -0
- data/doc/ri/Folio/Prompt/%2f-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/%5b%5d-c.yaml +10 -0
- data/doc/ri/Folio/Prompt/cd-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/cdesc-Prompt.yaml +89 -0
- data/doc/ri/Folio/Prompt/chmod-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/chmod_r-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/chown-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/chown_r-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/cp-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/cp_r-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/directories-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/entries-i.yaml +13 -0
- data/doc/ri/Folio/Prompt/file-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/files-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/fileutils-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/glob-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/install-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/ln-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/ln_s-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/ln_sf-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/localize-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/ls-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/mkdir-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/mkdir_p-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/mode-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/mv-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/new-c.yaml +11 -0
- data/doc/ri/Folio/Prompt/paths-i.yaml +12 -0
- data/doc/ri/Folio/Prompt/pwd-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/rm-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/rm_r-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/rm_rf-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/rmdir-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/to_s-i.yaml +10 -0
- data/doc/ri/Folio/Prompt/touch-i.yaml +12 -0
- data/doc/ri/Folio/Socket/cdesc-Socket.yaml +16 -0
- data/doc/ri/Folio/Socket/new-c.yaml +10 -0
- data/doc/ri/Folio/cdesc-Folio.yaml +15 -0
- data/doc/ri/created.rid +1 -0
- data/lib/folio/device.rb +29 -0
- data/lib/folio/directory.rb +83 -0
- data/lib/folio/document.rb +66 -0
- data/lib/folio/errors.rb +7 -0
- data/lib/folio/fileobject.rb +242 -0
- data/lib/folio/link.rb +49 -0
- data/lib/folio/pipe.rb +16 -0
- data/lib/folio/prompt.rb +239 -0
- data/lib/folio/socket.rb +14 -0
- data/lib/folio.rb +79 -0
- data/test/fixture/bar.txt +0 -0
- data/test/fixture/foo.txt +0 -0
- data/test/test_folio.rb +28 -0
- data/test/test_helper.rb +7 -0
- metadata +300 -0
@@ -0,0 +1,101 @@
|
|
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>File: METADATA</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 border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
|
54
|
+
<tr><td>
|
55
|
+
<table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
|
56
|
+
<td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />METADATA</td>
|
57
|
+
<td align="right">
|
58
|
+
<table border='0' cellspacing="0" cellpadding="2">
|
59
|
+
<tr>
|
60
|
+
<td>Path:</td>
|
61
|
+
<td>METADATA
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
<tr>
|
65
|
+
<td>Modified:</td>
|
66
|
+
<td>Thu Aug 21 15:12:28 -0400 2008</td>
|
67
|
+
</tr>
|
68
|
+
</table>
|
69
|
+
</td></tr>
|
70
|
+
</table>
|
71
|
+
</td></tr>
|
72
|
+
</table><br />
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
<div id="content">
|
77
|
+
|
78
|
+
<div class="description"><p>
|
79
|
+
name : folio version : 0.1.0 status : alpha homepage : <a
|
80
|
+
href="http://folio.rubyforge.org">folio.rubyforge.org</a> author : trans
|
81
|
+
<transfire@gmail.com> summary : <a
|
82
|
+
href="../classes/Folio.html">Folio</a> is a better way to access the file
|
83
|
+
system. abstract : <a href="../classes/Folio.html">Folio</a> is a better
|
84
|
+
way to access the file system.
|
85
|
+
</p>
|
86
|
+
</div>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
</div>
|
97
|
+
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</body>
|
101
|
+
</html>
|
@@ -0,0 +1,102 @@
|
|
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>File: NEWS</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 border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
|
54
|
+
<tr><td>
|
55
|
+
<table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
|
56
|
+
<td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />NEWS</td>
|
57
|
+
<td align="right">
|
58
|
+
<table border='0' cellspacing="0" cellpadding="2">
|
59
|
+
<tr>
|
60
|
+
<td>Path:</td>
|
61
|
+
<td>NEWS
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
<tr>
|
65
|
+
<td>Modified:</td>
|
66
|
+
<td>Fri Aug 22 16:41:52 -0400 2008</td>
|
67
|
+
</tr>
|
68
|
+
</table>
|
69
|
+
</td></tr>
|
70
|
+
</table>
|
71
|
+
</td></tr>
|
72
|
+
</table><br />
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
<div id="content">
|
77
|
+
|
78
|
+
<div class="description"><h1>News & Release Notes</h1>
|
79
|
+
<h2>0.1.0 // 2008-08-18</h2>
|
80
|
+
<p>
|
81
|
+
<a href="../classes/Folio.html">Folio</a> was spawned by ruby-talk:311762.
|
82
|
+
</p>
|
83
|
+
<p>
|
84
|
+
This is the initial release of <a href="../classes/Folio.html">Folio</a>.
|
85
|
+
As such it is very much an alpha release!!!
|
86
|
+
</p>
|
87
|
+
</div>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
</div>
|
98
|
+
|
99
|
+
</div>
|
100
|
+
|
101
|
+
</body>
|
102
|
+
</html>
|
@@ -0,0 +1,171 @@
|
|
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>File: README</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 border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
|
54
|
+
<tr><td>
|
55
|
+
<table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
|
56
|
+
<td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />README</td>
|
57
|
+
<td align="right">
|
58
|
+
<table border='0' cellspacing="0" cellpadding="2">
|
59
|
+
<tr>
|
60
|
+
<td>Path:</td>
|
61
|
+
<td>README
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
<tr>
|
65
|
+
<td>Modified:</td>
|
66
|
+
<td>Thu Aug 21 15:19:49 -0400 2008</td>
|
67
|
+
</tr>
|
68
|
+
</table>
|
69
|
+
</td></tr>
|
70
|
+
</table>
|
71
|
+
</td></tr>
|
72
|
+
</table><br />
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
<div id="content">
|
77
|
+
|
78
|
+
<div class="description"><h1><a href="../classes/Folio.html">Folio</a></h1>
|
79
|
+
<pre>
|
80
|
+
http://folio.rubyforge.org
|
81
|
+
</pre>
|
82
|
+
<h2>Introduction</h2>
|
83
|
+
<p>
|
84
|
+
<a href="../classes/Folio.html">Folio</a> is a "better way" to
|
85
|
+
access the filesystem in your Ruby programs. It works by elmulating the
|
86
|
+
behavior of a command shell. So just as you @cd@ up and down the file
|
87
|
+
hierarchy at a shell prompt, you do the same against a Filio Prompt object.
|
88
|
+
</p>
|
89
|
+
<p>
|
90
|
+
In addition <a href="../classes/Folio.html">Folio</a> wraps all the common
|
91
|
+
File System objects, providing a more intutive means of handling these in
|
92
|
+
an dobject-oriented manner. For instance, <a
|
93
|
+
href="../classes/Folio/Link.html">Folio::Link</a> represents a link on the
|
94
|
+
file system, and just as the link references another file, so de the <a
|
95
|
+
href="../classes/Folio/Link.html">Folio::Link</a> object deletgate to
|
96
|
+
another <a href="../classes/Folio.html">Folio</a> file object.
|
97
|
+
</p>
|
98
|
+
<h2>Usage</h2>
|
99
|
+
<p>
|
100
|
+
Since this is such an early release the API is still subject to change. But
|
101
|
+
the basic idea remains the same:
|
102
|
+
</p>
|
103
|
+
<pre>
|
104
|
+
require 'folio'
|
105
|
+
|
106
|
+
# get a folio prompt on the current directory (Dir.pwd).
|
107
|
+
cursor = Folio::Prompt.new
|
108
|
+
|
109
|
+
# return a list of directory's entries as strings.
|
110
|
+
cursor.ls
|
111
|
+
|
112
|
+
# return a list of directories as Directory objects.
|
113
|
+
cursor.directories
|
114
|
+
|
115
|
+
# return a list of regular files as Document objects.
|
116
|
+
cursor.documents
|
117
|
+
|
118
|
+
# Change down to the foo directory.
|
119
|
+
cursor.cd('foo')
|
120
|
+
|
121
|
+
# return a list of all entries as File objects.
|
122
|
+
p cursor.files
|
123
|
+
</pre>
|
124
|
+
<h2>Install</h2>
|
125
|
+
<p>
|
126
|
+
You know the Gem drill.
|
127
|
+
</p>
|
128
|
+
<pre>
|
129
|
+
$ gem install folio
|
130
|
+
</pre>
|
131
|
+
<p>
|
132
|
+
And you may know the Setup drill.*
|
133
|
+
</p>
|
134
|
+
<pre>
|
135
|
+
$ tar -xvzf folio-0.1.0.tgz
|
136
|
+
$ cd folio-0.1.0.tgz
|
137
|
+
$ ruby setup.rb
|
138
|
+
</pre>
|
139
|
+
<p>
|
140
|
+
*requires <a href="<a
|
141
|
+
href="http://setup.rubyforge.org">Ruby">setup.rubyforge.org">Ruby</a>
|
142
|
+
Setup</a>
|
143
|
+
</p>
|
144
|
+
<h2>Resources</h2>
|
145
|
+
<p>
|
146
|
+
<a href="rio.rubyforge.org">Rio<a> is a similar too.
|
147
|
+
It‘s very well documented, but has a different design philiosophy
|
148
|
+
having it‘s own more unique DSL.
|
149
|
+
</p>
|
150
|
+
<h2>Copying</h2>
|
151
|
+
<p>
|
152
|
+
<a href="../classes/Folio.html">Folio</a> is Copyright (c)2008 Tiger Ops
|
153
|
+
& Thomas Sawyer <a href="../classes/Folio.html">Folio</a> is
|
154
|
+
distributed under the terms of the GPLv3.
|
155
|
+
</p>
|
156
|
+
</div>
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
</div>
|
167
|
+
|
168
|
+
</div>
|
169
|
+
|
170
|
+
</body>
|
171
|
+
</html>
|
@@ -0,0 +1,96 @@
|
|
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>File: device.rb</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 border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
|
54
|
+
<tr><td>
|
55
|
+
<table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
|
56
|
+
<td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />device.rb</td>
|
57
|
+
<td align="right">
|
58
|
+
<table border='0' cellspacing="0" cellpadding="2">
|
59
|
+
<tr>
|
60
|
+
<td>Path:</td>
|
61
|
+
<td>lib/folio/device.rb
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
<tr>
|
65
|
+
<td>Modified:</td>
|
66
|
+
<td>Wed Aug 20 09:51:02 -0400 2008</td>
|
67
|
+
</tr>
|
68
|
+
</table>
|
69
|
+
</td></tr>
|
70
|
+
</table>
|
71
|
+
</td></tr>
|
72
|
+
</table><br />
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
<div id="content">
|
77
|
+
|
78
|
+
|
79
|
+
<div class="sectiontitle">Required Files</div>
|
80
|
+
<ul>
|
81
|
+
<li>folio/fileobject</li>
|
82
|
+
</ul>
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
</body>
|
96
|
+
</html>
|
@@ -0,0 +1,96 @@
|
|
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>File: directory.rb</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 border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
|
54
|
+
<tr><td>
|
55
|
+
<table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
|
56
|
+
<td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />directory.rb</td>
|
57
|
+
<td align="right">
|
58
|
+
<table border='0' cellspacing="0" cellpadding="2">
|
59
|
+
<tr>
|
60
|
+
<td>Path:</td>
|
61
|
+
<td>lib/folio/directory.rb
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
<tr>
|
65
|
+
<td>Modified:</td>
|
66
|
+
<td>Wed Aug 20 09:51:06 -0400 2008</td>
|
67
|
+
</tr>
|
68
|
+
</table>
|
69
|
+
</td></tr>
|
70
|
+
</table>
|
71
|
+
</td></tr>
|
72
|
+
</table><br />
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
<div id="content">
|
77
|
+
|
78
|
+
|
79
|
+
<div class="sectiontitle">Required Files</div>
|
80
|
+
<ul>
|
81
|
+
<li>folio/fileobject</li>
|
82
|
+
</ul>
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
</body>
|
96
|
+
</html>
|
@@ -0,0 +1,96 @@
|
|
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>File: document.rb</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 border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
|
54
|
+
<tr><td>
|
55
|
+
<table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
|
56
|
+
<td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />document.rb</td>
|
57
|
+
<td align="right">
|
58
|
+
<table border='0' cellspacing="0" cellpadding="2">
|
59
|
+
<tr>
|
60
|
+
<td>Path:</td>
|
61
|
+
<td>lib/folio/document.rb
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
<tr>
|
65
|
+
<td>Modified:</td>
|
66
|
+
<td>Wed Aug 20 09:47:17 -0400 2008</td>
|
67
|
+
</tr>
|
68
|
+
</table>
|
69
|
+
</td></tr>
|
70
|
+
</table>
|
71
|
+
</td></tr>
|
72
|
+
</table><br />
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
<div id="content">
|
77
|
+
|
78
|
+
|
79
|
+
<div class="sectiontitle">Required Files</div>
|
80
|
+
<ul>
|
81
|
+
<li>folio/fileobject</li>
|
82
|
+
</ul>
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
</body>
|
96
|
+
</html>
|