Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v9 / html / python / mac / fsspec-objects.html
CommitLineData
920dae64
AT
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3<head>
4<link rel="STYLESHEET" href="mac.css" type='text/css' />
5<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
6<link rel='start' href='../index.html' title='Python Documentation Index' />
7<link rel="first" href="mac.html" title='Macintosh Library Modules' />
8<link rel='contents' href='contents.html' title="Contents" />
9<link rel='index' href='genindex.html' title='Index' />
10<link rel='last' href='about.html' title='About this document...' />
11<link rel='help' href='about.html' title='About this document...' />
12<link rel="next" href="alias-objects.html" />
13<link rel="prev" href="module-macfs.html" />
14<link rel="parent" href="module-macfs.html" />
15<link rel="next" href="alias-objects.html" />
16<meta name='aesop' content='information' />
17<title>2.2.1 FSSpec Objects </title>
18</head>
19<body>
20<DIV CLASS="navigation">
21<div id='top-navigation-panel' xml:id='top-navigation-panel'>
22<table align="center" width="100%" cellpadding="0" cellspacing="2">
23<tr>
24<td class='online-navigation'><a rel="prev" title="2.2 macfs "
25 href="module-macfs.html"><img src='../icons/previous.png'
26 border='0' height='32' alt='Previous Page' width='32' /></A></td>
27<td class='online-navigation'><a rel="parent" title="2.2 macfs "
28 href="module-macfs.html"><img src='../icons/up.png'
29 border='0' height='32' alt='Up One Level' width='32' /></A></td>
30<td class='online-navigation'><a rel="next" title="2.2.2 Alias Objects"
31 href="alias-objects.html"><img src='../icons/next.png'
32 border='0' height='32' alt='Next Page' width='32' /></A></td>
33<td align="center" width="100%">Macintosh Library Modules</td>
34<td class='online-navigation'><a rel="contents" title="Table of Contents"
35 href="contents.html"><img src='../icons/contents.png'
36 border='0' height='32' alt='Contents' width='32' /></A></td>
37<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
38 border='0' height='32' alt='Module Index' width='32' /></a></td>
39<td class='online-navigation'><a rel="index" title="Index"
40 href="genindex.html"><img src='../icons/index.png'
41 border='0' height='32' alt='Index' width='32' /></A></td>
42</tr></table>
43<div class='online-navigation'>
44<b class="navlabel">Previous:</b>
45<a class="sectref" rel="prev" href="module-macfs.html">2.2 macfs </A>
46<b class="navlabel">Up:</b>
47<a class="sectref" rel="parent" href="module-macfs.html">2.2 macfs </A>
48<b class="navlabel">Next:</b>
49<a class="sectref" rel="next" href="alias-objects.html">2.2.2 Alias Objects</A>
50</div>
51<hr /></div>
52</DIV>
53<!--End of Navigation Panel-->
54
55<H2><A NAME="SECTION004210000000000000000"></A><A NAME="fsspec-objects"></A>
56<BR>
572.2.1 FSSpec Objects
58</H2>
59
60<P>
61<dl><dt><b><tt id='l2h-18' xml:id='l2h-18' class="member">data</tt></b></dt>
62<dd>
63The raw data from the FSSpec object, suitable for passing
64to other applications, for instance.
65</dl>
66
67<P>
68<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
69 <td><nobr><b><tt id='l2h-19' xml:id='l2h-19' class="method">as_pathname</tt></b>(</nobr></td>
70 <td><var></var>)</td></tr></table></dt>
71<dd>
72Return the full pathname of the file described by the <tt class="class">FSSpec</tt>
73object.
74</dl>
75
76<P>
77<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
78 <td><nobr><b><tt id='l2h-20' xml:id='l2h-20' class="method">as_tuple</tt></b>(</nobr></td>
79 <td><var></var>)</td></tr></table></dt>
80<dd>
81Return the <code>(<var>wdRefNum</var>, <var>parID</var>, <var>name</var>)</code> tuple of
82the file described by the <tt class="class">FSSpec</tt> object.
83</dl>
84
85<P>
86<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
87 <td><nobr><b><tt id='l2h-21' xml:id='l2h-21' class="method">NewAlias</tt></b>(</nobr></td>
88 <td><var></var><big>[</big><var>file</var><big>]</big><var></var>)</td></tr></table></dt>
89<dd>
90Create an Alias object pointing to the file described by this
91FSSpec. If the optional <var>file</var> parameter is present the alias
92will be relative to that file, otherwise it will be absolute.
93</dl>
94
95<P>
96<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
97 <td><nobr><b><tt id='l2h-22' xml:id='l2h-22' class="method">NewAliasMinimal</tt></b>(</nobr></td>
98 <td><var></var>)</td></tr></table></dt>
99<dd>
100Create a minimal alias pointing to this file.
101</dl>
102
103<P>
104<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
105 <td><nobr><b><tt id='l2h-23' xml:id='l2h-23' class="method">GetCreatorType</tt></b>(</nobr></td>
106 <td><var></var>)</td></tr></table></dt>
107<dd>
108Return the 4-character creator and type of the file.
109</dl>
110
111<P>
112<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
113 <td><nobr><b><tt id='l2h-24' xml:id='l2h-24' class="method">SetCreatorType</tt></b>(</nobr></td>
114 <td><var>creator, type</var>)</td></tr></table></dt>
115<dd>
116Set the 4-character creator and type of the file.
117</dl>
118
119<P>
120<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
121 <td><nobr><b><tt id='l2h-25' xml:id='l2h-25' class="method">GetFInfo</tt></b>(</nobr></td>
122 <td><var></var>)</td></tr></table></dt>
123<dd>
124Return a <tt class="class">FInfo</tt> object describing the finder info for the file.
125</dl>
126
127<P>
128<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
129 <td><nobr><b><tt id='l2h-26' xml:id='l2h-26' class="method">SetFInfo</tt></b>(</nobr></td>
130 <td><var>finfo</var>)</td></tr></table></dt>
131<dd>
132Set the finder info for the file to the values given as <var>finfo</var>
133(an <tt class="class">FInfo</tt> object).
134</dl>
135
136<P>
137<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
138 <td><nobr><b><tt id='l2h-27' xml:id='l2h-27' class="method">GetDates</tt></b>(</nobr></td>
139 <td><var></var>)</td></tr></table></dt>
140<dd>
141Return a tuple with three floating point values representing the
142creation date, modification date and backup date of the file.
143</dl>
144
145<P>
146<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
147 <td><nobr><b><tt id='l2h-28' xml:id='l2h-28' class="method">SetDates</tt></b>(</nobr></td>
148 <td><var>crdate, moddate, backupdate</var>)</td></tr></table></dt>
149<dd>
150Set the creation, modification and backup date of the file. The values
151are in the standard floating point format used for times throughout
152Python.
153</dl>
154
155<P>
156
157<DIV CLASS="navigation">
158<div class='online-navigation'>
159<p></p><hr />
160<table align="center" width="100%" cellpadding="0" cellspacing="2">
161<tr>
162<td class='online-navigation'><a rel="prev" title="2.2 macfs "
163 href="module-macfs.html"><img src='../icons/previous.png'
164 border='0' height='32' alt='Previous Page' width='32' /></A></td>
165<td class='online-navigation'><a rel="parent" title="2.2 macfs "
166 href="module-macfs.html"><img src='../icons/up.png'
167 border='0' height='32' alt='Up One Level' width='32' /></A></td>
168<td class='online-navigation'><a rel="next" title="2.2.2 Alias Objects"
169 href="alias-objects.html"><img src='../icons/next.png'
170 border='0' height='32' alt='Next Page' width='32' /></A></td>
171<td align="center" width="100%">Macintosh Library Modules</td>
172<td class='online-navigation'><a rel="contents" title="Table of Contents"
173 href="contents.html"><img src='../icons/contents.png'
174 border='0' height='32' alt='Contents' width='32' /></A></td>
175<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
176 border='0' height='32' alt='Module Index' width='32' /></a></td>
177<td class='online-navigation'><a rel="index" title="Index"
178 href="genindex.html"><img src='../icons/index.png'
179 border='0' height='32' alt='Index' width='32' /></A></td>
180</tr></table>
181<div class='online-navigation'>
182<b class="navlabel">Previous:</b>
183<a class="sectref" rel="prev" href="module-macfs.html">2.2 macfs </A>
184<b class="navlabel">Up:</b>
185<a class="sectref" rel="parent" href="module-macfs.html">2.2 macfs </A>
186<b class="navlabel">Next:</b>
187<a class="sectref" rel="next" href="alias-objects.html">2.2.2 Alias Objects</A>
188</div>
189</div>
190<hr />
191<span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span>
192</DIV>
193<!--End of Navigation Panel-->
194<ADDRESS>
195See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
196</ADDRESS>
197</BODY>
198</HTML>