~dkuhlman/python-training-materials/Materials

« back to all changes in this revision

Viewing changes to python-3.5.2-docs-html/library/stat.html

  • Committer: Dave Kuhlman
  • Date: 2017-04-15 16:24:56 UTC
  • Revision ID: dkuhlman@davekuhlman.org-20170415162456-iav9vozzg4iwqwv3
Updated docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
3
 
 
4
 
 
5
<html xmlns="http://www.w3.org/1999/xhtml">
 
6
  <head>
 
7
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
8
    
 
9
    <title>11.4. stat — Interpreting stat() results &mdash; Python 3.5.2 documentation</title>
 
10
    
 
11
    <link rel="stylesheet" href="../_static/pydoctheme.css" type="text/css" />
 
12
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
 
13
    
 
14
    <script type="text/javascript">
 
15
      var DOCUMENTATION_OPTIONS = {
 
16
        URL_ROOT:    '../',
 
17
        VERSION:     '3.5.2',
 
18
        COLLAPSE_INDEX: false,
 
19
        FILE_SUFFIX: '.html',
 
20
        HAS_SOURCE:  true
 
21
      };
 
22
    </script>
 
23
    <script type="text/javascript" src="../_static/jquery.js"></script>
 
24
    <script type="text/javascript" src="../_static/underscore.js"></script>
 
25
    <script type="text/javascript" src="../_static/doctools.js"></script>
 
26
    <script type="text/javascript" src="../_static/sidebar.js"></script>
 
27
    <link rel="search" type="application/opensearchdescription+xml"
 
28
          title="Search within Python 3.5.2 documentation"
 
29
          href="../_static/opensearch.xml"/>
 
30
    <link rel="author" title="About these documents" href="../about.html" />
 
31
    <link rel="copyright" title="Copyright" href="../copyright.html" />
 
32
    <link rel="top" title="Python 3.5.2 documentation" href="../contents.html" />
 
33
    <link rel="up" title="11. File and Directory Access" href="filesys.html" />
 
34
    <link rel="next" title="11.5. filecmp — File and Directory Comparisons" href="filecmp.html" />
 
35
    <link rel="prev" title="11.3. fileinput — Iterate over lines from multiple input streams" href="fileinput.html" />
 
36
    <link rel="shortcut icon" type="image/png" href="../_static/py.png" />
 
37
    
 
38
    <script type="text/javascript" src="../_static/copybutton.js"></script>
 
39
    <script type="text/javascript" src="../_static/version_switch.js"></script>
 
40
    
 
41
    
 
42
 
 
43
 
 
44
  </head>
 
45
  <body role="document">  
 
46
    <div class="related" role="navigation" aria-label="related navigation">
 
47
      <h3>Navigation</h3>
 
48
      <ul>
 
49
        <li class="right" style="margin-right: 10px">
 
50
          <a href="../genindex.html" title="General Index"
 
51
             accesskey="I">index</a></li>
 
52
        <li class="right" >
 
53
          <a href="../py-modindex.html" title="Python Module Index"
 
54
             >modules</a> |</li>
 
55
        <li class="right" >
 
56
          <a href="filecmp.html" title="11.5. filecmp — File and Directory Comparisons"
 
57
             accesskey="N">next</a> |</li>
 
58
        <li class="right" >
 
59
          <a href="fileinput.html" title="11.3. fileinput — Iterate over lines from multiple input streams"
 
60
             accesskey="P">previous</a> |</li>
 
61
        <li><img src="../_static/py.png" alt=""
 
62
                 style="vertical-align: middle; margin-top: -1px"/></li>
 
63
        <li><a href="https://www.python.org/">Python</a> &raquo;</li>
 
64
        <li>
 
65
          <span class="version_switcher_placeholder">3.5.2</span>
 
66
          <a href="../index.html">Documentation </a> &raquo;
 
67
        </li>
 
68
 
 
69
          <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &raquo;</li>
 
70
          <li class="nav-item nav-item-2"><a href="filesys.html" accesskey="U">11. File and Directory Access</a> &raquo;</li>
 
71
    <li class="right">
 
72
        
 
73
 
 
74
    <div class="inline-search" style="display: none" role="search">
 
75
        <form class="inline-search" action="../search.html" method="get">
 
76
          <input placeholder="Quick search" type="text" name="q" />
 
77
          <input type="submit" value="Go" />
 
78
          <input type="hidden" name="check_keywords" value="yes" />
 
79
          <input type="hidden" name="area" value="default" />
 
80
        </form>
 
81
    </div>
 
82
    <script type="text/javascript">$('.inline-search').show(0);</script>
 
83
         |
 
84
    </li>
 
85
 
 
86
      </ul>
 
87
    </div>    
 
88
 
 
89
    <div class="document">
 
90
      <div class="documentwrapper">
 
91
        <div class="bodywrapper">
 
92
          <div class="body" role="main">
 
93
            
 
94
  <div class="section" id="module-stat">
 
95
<span id="stat-interpreting-stat-results"></span><h1>11.4. <a class="reference internal" href="#module-stat" title="stat: Utilities for interpreting the results of os.stat(), os.lstat() and os.fstat()."><code class="xref py py-mod docutils literal"><span class="pre">stat</span></code></a> &#8212; Interpreting <a class="reference internal" href="os.html#os.stat" title="os.stat"><code class="xref py py-func docutils literal"><span class="pre">stat()</span></code></a> results<a class="headerlink" href="#module-stat" title="Permalink to this headline">¶</a></h1>
 
96
<p><strong>Source code:</strong> <a class="reference external" href="https://hg.python.org/cpython/file/3.5/Lib/stat.py">Lib/stat.py</a></p>
 
97
<hr class="docutils" />
 
98
<p>The <a class="reference internal" href="#module-stat" title="stat: Utilities for interpreting the results of os.stat(), os.lstat() and os.fstat()."><code class="xref py py-mod docutils literal"><span class="pre">stat</span></code></a> module defines constants and functions for interpreting the
 
99
results of <a class="reference internal" href="os.html#os.stat" title="os.stat"><code class="xref py py-func docutils literal"><span class="pre">os.stat()</span></code></a>, <a class="reference internal" href="os.html#os.fstat" title="os.fstat"><code class="xref py py-func docutils literal"><span class="pre">os.fstat()</span></code></a> and <a class="reference internal" href="os.html#os.lstat" title="os.lstat"><code class="xref py py-func docutils literal"><span class="pre">os.lstat()</span></code></a> (if they
 
100
exist).  For complete details about the <code class="xref c c-func docutils literal"><span class="pre">stat()</span></code>, <code class="xref c c-func docutils literal"><span class="pre">fstat()</span></code> and
 
101
<code class="xref c c-func docutils literal"><span class="pre">lstat()</span></code> calls, consult the documentation for your system.</p>
 
102
<div class="versionchanged">
 
103
<p><span class="versionmodified">Changed in version 3.4: </span>The stat module is backed by a C implementation.</p>
 
104
</div>
 
105
<p>The <a class="reference internal" href="#module-stat" title="stat: Utilities for interpreting the results of os.stat(), os.lstat() and os.fstat()."><code class="xref py py-mod docutils literal"><span class="pre">stat</span></code></a> module defines the following functions to test for specific file
 
106
types:</p>
 
107
<dl class="function">
 
108
<dt id="stat.S_ISDIR">
 
109
<code class="descclassname">stat.</code><code class="descname">S_ISDIR</code><span class="sig-paren">(</span><em>mode</em><span class="sig-paren">)</span><a class="headerlink" href="#stat.S_ISDIR" title="Permalink to this definition">¶</a></dt>
 
110
<dd><p>Return non-zero if the mode is from a directory.</p>
 
111
</dd></dl>
 
112
 
 
113
<dl class="function">
 
114
<dt id="stat.S_ISCHR">
 
115
<code class="descclassname">stat.</code><code class="descname">S_ISCHR</code><span class="sig-paren">(</span><em>mode</em><span class="sig-paren">)</span><a class="headerlink" href="#stat.S_ISCHR" title="Permalink to this definition">¶</a></dt>
 
116
<dd><p>Return non-zero if the mode is from a character special device file.</p>
 
117
</dd></dl>
 
118
 
 
119
<dl class="function">
 
120
<dt id="stat.S_ISBLK">
 
121
<code class="descclassname">stat.</code><code class="descname">S_ISBLK</code><span class="sig-paren">(</span><em>mode</em><span class="sig-paren">)</span><a class="headerlink" href="#stat.S_ISBLK" title="Permalink to this definition">¶</a></dt>
 
122
<dd><p>Return non-zero if the mode is from a block special device file.</p>
 
123
</dd></dl>
 
124
 
 
125
<dl class="function">
 
126
<dt id="stat.S_ISREG">
 
127
<code class="descclassname">stat.</code><code class="descname">S_ISREG</code><span class="sig-paren">(</span><em>mode</em><span class="sig-paren">)</span><a class="headerlink" href="#stat.S_ISREG" title="Permalink to this definition">¶</a></dt>
 
128
<dd><p>Return non-zero if the mode is from a regular file.</p>
 
129
</dd></dl>
 
130
 
 
131
<dl class="function">
 
132
<dt id="stat.S_ISFIFO">
 
133
<code class="descclassname">stat.</code><code class="descname">S_ISFIFO</code><span class="sig-paren">(</span><em>mode</em><span class="sig-paren">)</span><a class="headerlink" href="#stat.S_ISFIFO" title="Permalink to this definition">¶</a></dt>
 
134
<dd><p>Return non-zero if the mode is from a FIFO (named pipe).</p>
 
135
</dd></dl>
 
136
 
 
137
<dl class="function">
 
138
<dt id="stat.S_ISLNK">
 
139
<code class="descclassname">stat.</code><code class="descname">S_ISLNK</code><span class="sig-paren">(</span><em>mode</em><span class="sig-paren">)</span><a class="headerlink" href="#stat.S_ISLNK" title="Permalink to this definition">¶</a></dt>
 
140
<dd><p>Return non-zero if the mode is from a symbolic link.</p>
 
141
</dd></dl>
 
142
 
 
143
<dl class="function">
 
144
<dt id="stat.S_ISSOCK">
 
145
<code class="descclassname">stat.</code><code class="descname">S_ISSOCK</code><span class="sig-paren">(</span><em>mode</em><span class="sig-paren">)</span><a class="headerlink" href="#stat.S_ISSOCK" title="Permalink to this definition">¶</a></dt>
 
146
<dd><p>Return non-zero if the mode is from a socket.</p>
 
147
</dd></dl>
 
148
 
 
149
<dl class="function">
 
150
<dt id="stat.S_ISDOOR">
 
151
<code class="descclassname">stat.</code><code class="descname">S_ISDOOR</code><span class="sig-paren">(</span><em>mode</em><span class="sig-paren">)</span><a class="headerlink" href="#stat.S_ISDOOR" title="Permalink to this definition">¶</a></dt>
 
152
<dd><p>Return non-zero if the mode is from a door.</p>
 
153
<div class="versionadded">
 
154
<p><span class="versionmodified">New in version 3.4.</span></p>
 
155
</div>
 
156
</dd></dl>
 
157
 
 
158
<dl class="function">
 
159
<dt id="stat.S_ISPORT">
 
160
<code class="descclassname">stat.</code><code class="descname">S_ISPORT</code><span class="sig-paren">(</span><em>mode</em><span class="sig-paren">)</span><a class="headerlink" href="#stat.S_ISPORT" title="Permalink to this definition">¶</a></dt>
 
161
<dd><p>Return non-zero if the mode is from an event port.</p>
 
162
<div class="versionadded">
 
163
<p><span class="versionmodified">New in version 3.4.</span></p>
 
164
</div>
 
165
</dd></dl>
 
166
 
 
167
<dl class="function">
 
168
<dt id="stat.S_ISWHT">
 
169
<code class="descclassname">stat.</code><code class="descname">S_ISWHT</code><span class="sig-paren">(</span><em>mode</em><span class="sig-paren">)</span><a class="headerlink" href="#stat.S_ISWHT" title="Permalink to this definition">¶</a></dt>
 
170
<dd><p>Return non-zero if the mode is from a whiteout.</p>
 
171
<div class="versionadded">
 
172
<p><span class="versionmodified">New in version 3.4.</span></p>
 
173
</div>
 
174
</dd></dl>
 
175
 
 
176
<p>Two additional functions are defined for more general manipulation of the file&#8217;s
 
177
mode:</p>
 
178
<dl class="function">
 
179
<dt id="stat.S_IMODE">
 
180
<code class="descclassname">stat.</code><code class="descname">S_IMODE</code><span class="sig-paren">(</span><em>mode</em><span class="sig-paren">)</span><a class="headerlink" href="#stat.S_IMODE" title="Permalink to this definition">¶</a></dt>
 
181
<dd><p>Return the portion of the file&#8217;s mode that can be set by <a class="reference internal" href="os.html#os.chmod" title="os.chmod"><code class="xref py py-func docutils literal"><span class="pre">os.chmod()</span></code></a>&#8212;that is, the file&#8217;s permission bits, plus the sticky bit, set-group-id, and
 
182
set-user-id bits (on systems that support them).</p>
 
183
</dd></dl>
 
184
 
 
185
<dl class="function">
 
186
<dt id="stat.S_IFMT">
 
187
<code class="descclassname">stat.</code><code class="descname">S_IFMT</code><span class="sig-paren">(</span><em>mode</em><span class="sig-paren">)</span><a class="headerlink" href="#stat.S_IFMT" title="Permalink to this definition">¶</a></dt>
 
188
<dd><p>Return the portion of the file&#8217;s mode that describes the file type (used by the
 
189
<code class="xref py py-func docutils literal"><span class="pre">S_IS*()</span></code> functions above).</p>
 
190
</dd></dl>
 
191
 
 
192
<p>Normally, you would use the <code class="xref py py-func docutils literal"><span class="pre">os.path.is*()</span></code> functions for testing the type
 
193
of a file; the functions here are useful when you are doing multiple tests of
 
194
the same file and wish to avoid the overhead of the <code class="xref c c-func docutils literal"><span class="pre">stat()</span></code> system call
 
195
for each test.  These are also useful when checking for information about a file
 
196
that isn&#8217;t handled by <a class="reference internal" href="os.path.html#module-os.path" title="os.path: Operations on pathnames."><code class="xref py py-mod docutils literal"><span class="pre">os.path</span></code></a>, like the tests for block and character
 
197
devices.</p>
 
198
<p>Example:</p>
 
199
<div class="highlight-python3"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">os</span><span class="o">,</span> <span class="nn">sys</span>
 
200
<span class="kn">from</span> <span class="nn">stat</span> <span class="k">import</span> <span class="o">*</span>
 
201
 
 
202
<span class="k">def</span> <span class="nf">walktree</span><span class="p">(</span><span class="n">top</span><span class="p">,</span> <span class="n">callback</span><span class="p">):</span>
 
203
    <span class="sd">&#39;&#39;&#39;recursively descend the directory tree rooted at top,</span>
 
204
<span class="sd">       calling the callback function for each regular file&#39;&#39;&#39;</span>
 
205
 
 
206
    <span class="k">for</span> <span class="n">f</span> <span class="ow">in</span> <span class="n">os</span><span class="o">.</span><span class="n">listdir</span><span class="p">(</span><span class="n">top</span><span class="p">):</span>
 
207
        <span class="n">pathname</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">top</span><span class="p">,</span> <span class="n">f</span><span class="p">)</span>
 
208
        <span class="n">mode</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">stat</span><span class="p">(</span><span class="n">pathname</span><span class="p">)</span><span class="o">.</span><span class="n">st_mode</span>
 
209
        <span class="k">if</span> <span class="n">S_ISDIR</span><span class="p">(</span><span class="n">mode</span><span class="p">):</span>
 
210
            <span class="c1"># It&#39;s a directory, recurse into it</span>
 
211
            <span class="n">walktree</span><span class="p">(</span><span class="n">pathname</span><span class="p">,</span> <span class="n">callback</span><span class="p">)</span>
 
212
        <span class="k">elif</span> <span class="n">S_ISREG</span><span class="p">(</span><span class="n">mode</span><span class="p">):</span>
 
213
            <span class="c1"># It&#39;s a file, call the callback function</span>
 
214
            <span class="n">callback</span><span class="p">(</span><span class="n">pathname</span><span class="p">)</span>
 
215
        <span class="k">else</span><span class="p">:</span>
 
216
            <span class="c1"># Unknown file type, print a message</span>
 
217
            <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;Skipping </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="n">pathname</span><span class="p">)</span>
 
218
 
 
219
<span class="k">def</span> <span class="nf">visitfile</span><span class="p">(</span><span class="n">file</span><span class="p">):</span>
 
220
    <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;visiting&#39;</span><span class="p">,</span> <span class="n">file</span><span class="p">)</span>
 
221
 
 
222
<span class="k">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s1">&#39;__main__&#39;</span><span class="p">:</span>
 
223
    <span class="n">walktree</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">visitfile</span><span class="p">)</span>
 
224
</pre></div>
 
225
</div>
 
226
<p>An additional utility function is provided to convert a file&#8217;s mode in a human
 
227
readable string:</p>
 
228
<dl class="function">
 
229
<dt id="stat.filemode">
 
230
<code class="descclassname">stat.</code><code class="descname">filemode</code><span class="sig-paren">(</span><em>mode</em><span class="sig-paren">)</span><a class="headerlink" href="#stat.filemode" title="Permalink to this definition">¶</a></dt>
 
231
<dd><p>Convert a file&#8217;s mode to a string of the form &#8216;-rwxrwxrwx&#8217;.</p>
 
232
<div class="versionadded">
 
233
<p><span class="versionmodified">New in version 3.3.</span></p>
 
234
</div>
 
235
<div class="versionchanged">
 
236
<p><span class="versionmodified">Changed in version 3.4: </span>The function supports <a class="reference internal" href="#stat.S_IFDOOR" title="stat.S_IFDOOR"><code class="xref py py-data docutils literal"><span class="pre">S_IFDOOR</span></code></a>, <a class="reference internal" href="#stat.S_IFPORT" title="stat.S_IFPORT"><code class="xref py py-data docutils literal"><span class="pre">S_IFPORT</span></code></a> and
 
237
<a class="reference internal" href="#stat.S_IFWHT" title="stat.S_IFWHT"><code class="xref py py-data docutils literal"><span class="pre">S_IFWHT</span></code></a>.</p>
 
238
</div>
 
239
</dd></dl>
 
240
 
 
241
<p>All the variables below are simply symbolic indexes into the 10-tuple returned
 
242
by <a class="reference internal" href="os.html#os.stat" title="os.stat"><code class="xref py py-func docutils literal"><span class="pre">os.stat()</span></code></a>, <a class="reference internal" href="os.html#os.fstat" title="os.fstat"><code class="xref py py-func docutils literal"><span class="pre">os.fstat()</span></code></a> or <a class="reference internal" href="os.html#os.lstat" title="os.lstat"><code class="xref py py-func docutils literal"><span class="pre">os.lstat()</span></code></a>.</p>
 
243
<dl class="data">
 
244
<dt id="stat.ST_MODE">
 
245
<code class="descclassname">stat.</code><code class="descname">ST_MODE</code><a class="headerlink" href="#stat.ST_MODE" title="Permalink to this definition">¶</a></dt>
 
246
<dd><p>Inode protection mode.</p>
 
247
</dd></dl>
 
248
 
 
249
<dl class="data">
 
250
<dt id="stat.ST_INO">
 
251
<code class="descclassname">stat.</code><code class="descname">ST_INO</code><a class="headerlink" href="#stat.ST_INO" title="Permalink to this definition">¶</a></dt>
 
252
<dd><p>Inode number.</p>
 
253
</dd></dl>
 
254
 
 
255
<dl class="data">
 
256
<dt id="stat.ST_DEV">
 
257
<code class="descclassname">stat.</code><code class="descname">ST_DEV</code><a class="headerlink" href="#stat.ST_DEV" title="Permalink to this definition">¶</a></dt>
 
258
<dd><p>Device inode resides on.</p>
 
259
</dd></dl>
 
260
 
 
261
<dl class="data">
 
262
<dt id="stat.ST_NLINK">
 
263
<code class="descclassname">stat.</code><code class="descname">ST_NLINK</code><a class="headerlink" href="#stat.ST_NLINK" title="Permalink to this definition">¶</a></dt>
 
264
<dd><p>Number of links to the inode.</p>
 
265
</dd></dl>
 
266
 
 
267
<dl class="data">
 
268
<dt id="stat.ST_UID">
 
269
<code class="descclassname">stat.</code><code class="descname">ST_UID</code><a class="headerlink" href="#stat.ST_UID" title="Permalink to this definition">¶</a></dt>
 
270
<dd><p>User id of the owner.</p>
 
271
</dd></dl>
 
272
 
 
273
<dl class="data">
 
274
<dt id="stat.ST_GID">
 
275
<code class="descclassname">stat.</code><code class="descname">ST_GID</code><a class="headerlink" href="#stat.ST_GID" title="Permalink to this definition">¶</a></dt>
 
276
<dd><p>Group id of the owner.</p>
 
277
</dd></dl>
 
278
 
 
279
<dl class="data">
 
280
<dt id="stat.ST_SIZE">
 
281
<code class="descclassname">stat.</code><code class="descname">ST_SIZE</code><a class="headerlink" href="#stat.ST_SIZE" title="Permalink to this definition">¶</a></dt>
 
282
<dd><p>Size in bytes of a plain file; amount of data waiting on some special files.</p>
 
283
</dd></dl>
 
284
 
 
285
<dl class="data">
 
286
<dt id="stat.ST_ATIME">
 
287
<code class="descclassname">stat.</code><code class="descname">ST_ATIME</code><a class="headerlink" href="#stat.ST_ATIME" title="Permalink to this definition">¶</a></dt>
 
288
<dd><p>Time of last access.</p>
 
289
</dd></dl>
 
290
 
 
291
<dl class="data">
 
292
<dt id="stat.ST_MTIME">
 
293
<code class="descclassname">stat.</code><code class="descname">ST_MTIME</code><a class="headerlink" href="#stat.ST_MTIME" title="Permalink to this definition">¶</a></dt>
 
294
<dd><p>Time of last modification.</p>
 
295
</dd></dl>
 
296
 
 
297
<dl class="data">
 
298
<dt id="stat.ST_CTIME">
 
299
<code class="descclassname">stat.</code><code class="descname">ST_CTIME</code><a class="headerlink" href="#stat.ST_CTIME" title="Permalink to this definition">¶</a></dt>
 
300
<dd><p>The &#8220;ctime&#8221; as reported by the operating system.  On some systems (like Unix) is
 
301
the time of the last metadata change, and, on others (like Windows), is the
 
302
creation time (see platform documentation for details).</p>
 
303
</dd></dl>
 
304
 
 
305
<p>The interpretation of &#8220;file size&#8221; changes according to the file type.  For plain
 
306
files this is the size of the file in bytes.  For FIFOs and sockets under most
 
307
flavors of Unix (including Linux in particular), the &#8220;size&#8221; is the number of
 
308
bytes waiting to be read at the time of the call to <a class="reference internal" href="os.html#os.stat" title="os.stat"><code class="xref py py-func docutils literal"><span class="pre">os.stat()</span></code></a>,
 
309
<a class="reference internal" href="os.html#os.fstat" title="os.fstat"><code class="xref py py-func docutils literal"><span class="pre">os.fstat()</span></code></a>, or <a class="reference internal" href="os.html#os.lstat" title="os.lstat"><code class="xref py py-func docutils literal"><span class="pre">os.lstat()</span></code></a>; this can sometimes be useful, especially
 
310
for polling one of these special files after a non-blocking open.  The meaning
 
311
of the size field for other character and block devices varies more, depending
 
312
on the implementation of the underlying system call.</p>
 
313
<p>The variables below define the flags used in the <a class="reference internal" href="#stat.ST_MODE" title="stat.ST_MODE"><code class="xref py py-data docutils literal"><span class="pre">ST_MODE</span></code></a> field.</p>
 
314
<p>Use of the functions above is more portable than use of the first set of flags:</p>
 
315
<dl class="data">
 
316
<dt id="stat.S_IFSOCK">
 
317
<code class="descclassname">stat.</code><code class="descname">S_IFSOCK</code><a class="headerlink" href="#stat.S_IFSOCK" title="Permalink to this definition">¶</a></dt>
 
318
<dd><p>Socket.</p>
 
319
</dd></dl>
 
320
 
 
321
<dl class="data">
 
322
<dt id="stat.S_IFLNK">
 
323
<code class="descclassname">stat.</code><code class="descname">S_IFLNK</code><a class="headerlink" href="#stat.S_IFLNK" title="Permalink to this definition">¶</a></dt>
 
324
<dd><p>Symbolic link.</p>
 
325
</dd></dl>
 
326
 
 
327
<dl class="data">
 
328
<dt id="stat.S_IFREG">
 
329
<code class="descclassname">stat.</code><code class="descname">S_IFREG</code><a class="headerlink" href="#stat.S_IFREG" title="Permalink to this definition">¶</a></dt>
 
330
<dd><p>Regular file.</p>
 
331
</dd></dl>
 
332
 
 
333
<dl class="data">
 
334
<dt id="stat.S_IFBLK">
 
335
<code class="descclassname">stat.</code><code class="descname">S_IFBLK</code><a class="headerlink" href="#stat.S_IFBLK" title="Permalink to this definition">¶</a></dt>
 
336
<dd><p>Block device.</p>
 
337
</dd></dl>
 
338
 
 
339
<dl class="data">
 
340
<dt id="stat.S_IFDIR">
 
341
<code class="descclassname">stat.</code><code class="descname">S_IFDIR</code><a class="headerlink" href="#stat.S_IFDIR" title="Permalink to this definition">¶</a></dt>
 
342
<dd><p>Directory.</p>
 
343
</dd></dl>
 
344
 
 
345
<dl class="data">
 
346
<dt id="stat.S_IFCHR">
 
347
<code class="descclassname">stat.</code><code class="descname">S_IFCHR</code><a class="headerlink" href="#stat.S_IFCHR" title="Permalink to this definition">¶</a></dt>
 
348
<dd><p>Character device.</p>
 
349
</dd></dl>
 
350
 
 
351
<dl class="data">
 
352
<dt id="stat.S_IFIFO">
 
353
<code class="descclassname">stat.</code><code class="descname">S_IFIFO</code><a class="headerlink" href="#stat.S_IFIFO" title="Permalink to this definition">¶</a></dt>
 
354
<dd><p>FIFO.</p>
 
355
</dd></dl>
 
356
 
 
357
<dl class="data">
 
358
<dt id="stat.S_IFDOOR">
 
359
<code class="descclassname">stat.</code><code class="descname">S_IFDOOR</code><a class="headerlink" href="#stat.S_IFDOOR" title="Permalink to this definition">¶</a></dt>
 
360
<dd><p>Door.</p>
 
361
<div class="versionadded">
 
362
<p><span class="versionmodified">New in version 3.4.</span></p>
 
363
</div>
 
364
</dd></dl>
 
365
 
 
366
<dl class="data">
 
367
<dt id="stat.S_IFPORT">
 
368
<code class="descclassname">stat.</code><code class="descname">S_IFPORT</code><a class="headerlink" href="#stat.S_IFPORT" title="Permalink to this definition">¶</a></dt>
 
369
<dd><p>Event port.</p>
 
370
<div class="versionadded">
 
371
<p><span class="versionmodified">New in version 3.4.</span></p>
 
372
</div>
 
373
</dd></dl>
 
374
 
 
375
<dl class="data">
 
376
<dt id="stat.S_IFWHT">
 
377
<code class="descclassname">stat.</code><code class="descname">S_IFWHT</code><a class="headerlink" href="#stat.S_IFWHT" title="Permalink to this definition">¶</a></dt>
 
378
<dd><p>Whiteout.</p>
 
379
<div class="versionadded">
 
380
<p><span class="versionmodified">New in version 3.4.</span></p>
 
381
</div>
 
382
</dd></dl>
 
383
 
 
384
<div class="admonition note">
 
385
<p class="first admonition-title">Note</p>
 
386
<p class="last"><a class="reference internal" href="#stat.S_IFDOOR" title="stat.S_IFDOOR"><code class="xref py py-data docutils literal"><span class="pre">S_IFDOOR</span></code></a>, <a class="reference internal" href="#stat.S_IFPORT" title="stat.S_IFPORT"><code class="xref py py-data docutils literal"><span class="pre">S_IFPORT</span></code></a> or <a class="reference internal" href="#stat.S_IFWHT" title="stat.S_IFWHT"><code class="xref py py-data docutils literal"><span class="pre">S_IFWHT</span></code></a> are defined as
 
387
0 when the platform does not have support for the file types.</p>
 
388
</div>
 
389
<p>The following flags can also be used in the <em>mode</em> argument of <a class="reference internal" href="os.html#os.chmod" title="os.chmod"><code class="xref py py-func docutils literal"><span class="pre">os.chmod()</span></code></a>:</p>
 
390
<dl class="data">
 
391
<dt id="stat.S_ISUID">
 
392
<code class="descclassname">stat.</code><code class="descname">S_ISUID</code><a class="headerlink" href="#stat.S_ISUID" title="Permalink to this definition">¶</a></dt>
 
393
<dd><p>Set UID bit.</p>
 
394
</dd></dl>
 
395
 
 
396
<dl class="data">
 
397
<dt id="stat.S_ISGID">
 
398
<code class="descclassname">stat.</code><code class="descname">S_ISGID</code><a class="headerlink" href="#stat.S_ISGID" title="Permalink to this definition">¶</a></dt>
 
399
<dd><p>Set-group-ID bit.  This bit has several special uses.  For a directory
 
400
it indicates that BSD semantics is to be used for that directory:
 
401
files created there inherit their group ID from the directory, not
 
402
from the effective group ID of the creating process, and directories
 
403
created there will also get the <a class="reference internal" href="#stat.S_ISGID" title="stat.S_ISGID"><code class="xref py py-data docutils literal"><span class="pre">S_ISGID</span></code></a> bit set.  For a
 
404
file that does not have the group execution bit (<a class="reference internal" href="#stat.S_IXGRP" title="stat.S_IXGRP"><code class="xref py py-data docutils literal"><span class="pre">S_IXGRP</span></code></a>)
 
405
set, the set-group-ID bit indicates mandatory file/record locking
 
406
(see also <a class="reference internal" href="#stat.S_ENFMT" title="stat.S_ENFMT"><code class="xref py py-data docutils literal"><span class="pre">S_ENFMT</span></code></a>).</p>
 
407
</dd></dl>
 
408
 
 
409
<dl class="data">
 
410
<dt id="stat.S_ISVTX">
 
411
<code class="descclassname">stat.</code><code class="descname">S_ISVTX</code><a class="headerlink" href="#stat.S_ISVTX" title="Permalink to this definition">¶</a></dt>
 
412
<dd><p>Sticky bit.  When this bit is set on a directory it means that a file
 
413
in that directory can be renamed or deleted only by the owner of the
 
414
file, by the owner of the directory, or by a privileged process.</p>
 
415
</dd></dl>
 
416
 
 
417
<dl class="data">
 
418
<dt id="stat.S_IRWXU">
 
419
<code class="descclassname">stat.</code><code class="descname">S_IRWXU</code><a class="headerlink" href="#stat.S_IRWXU" title="Permalink to this definition">¶</a></dt>
 
420
<dd><p>Mask for file owner permissions.</p>
 
421
</dd></dl>
 
422
 
 
423
<dl class="data">
 
424
<dt id="stat.S_IRUSR">
 
425
<code class="descclassname">stat.</code><code class="descname">S_IRUSR</code><a class="headerlink" href="#stat.S_IRUSR" title="Permalink to this definition">¶</a></dt>
 
426
<dd><p>Owner has read permission.</p>
 
427
</dd></dl>
 
428
 
 
429
<dl class="data">
 
430
<dt id="stat.S_IWUSR">
 
431
<code class="descclassname">stat.</code><code class="descname">S_IWUSR</code><a class="headerlink" href="#stat.S_IWUSR" title="Permalink to this definition">¶</a></dt>
 
432
<dd><p>Owner has write permission.</p>
 
433
</dd></dl>
 
434
 
 
435
<dl class="data">
 
436
<dt id="stat.S_IXUSR">
 
437
<code class="descclassname">stat.</code><code class="descname">S_IXUSR</code><a class="headerlink" href="#stat.S_IXUSR" title="Permalink to this definition">¶</a></dt>
 
438
<dd><p>Owner has execute permission.</p>
 
439
</dd></dl>
 
440
 
 
441
<dl class="data">
 
442
<dt id="stat.S_IRWXG">
 
443
<code class="descclassname">stat.</code><code class="descname">S_IRWXG</code><a class="headerlink" href="#stat.S_IRWXG" title="Permalink to this definition">¶</a></dt>
 
444
<dd><p>Mask for group permissions.</p>
 
445
</dd></dl>
 
446
 
 
447
<dl class="data">
 
448
<dt id="stat.S_IRGRP">
 
449
<code class="descclassname">stat.</code><code class="descname">S_IRGRP</code><a class="headerlink" href="#stat.S_IRGRP" title="Permalink to this definition">¶</a></dt>
 
450
<dd><p>Group has read permission.</p>
 
451
</dd></dl>
 
452
 
 
453
<dl class="data">
 
454
<dt id="stat.S_IWGRP">
 
455
<code class="descclassname">stat.</code><code class="descname">S_IWGRP</code><a class="headerlink" href="#stat.S_IWGRP" title="Permalink to this definition">¶</a></dt>
 
456
<dd><p>Group has write permission.</p>
 
457
</dd></dl>
 
458
 
 
459
<dl class="data">
 
460
<dt id="stat.S_IXGRP">
 
461
<code class="descclassname">stat.</code><code class="descname">S_IXGRP</code><a class="headerlink" href="#stat.S_IXGRP" title="Permalink to this definition">¶</a></dt>
 
462
<dd><p>Group has execute permission.</p>
 
463
</dd></dl>
 
464
 
 
465
<dl class="data">
 
466
<dt id="stat.S_IRWXO">
 
467
<code class="descclassname">stat.</code><code class="descname">S_IRWXO</code><a class="headerlink" href="#stat.S_IRWXO" title="Permalink to this definition">¶</a></dt>
 
468
<dd><p>Mask for permissions for others (not in group).</p>
 
469
</dd></dl>
 
470
 
 
471
<dl class="data">
 
472
<dt id="stat.S_IROTH">
 
473
<code class="descclassname">stat.</code><code class="descname">S_IROTH</code><a class="headerlink" href="#stat.S_IROTH" title="Permalink to this definition">¶</a></dt>
 
474
<dd><p>Others have read permission.</p>
 
475
</dd></dl>
 
476
 
 
477
<dl class="data">
 
478
<dt id="stat.S_IWOTH">
 
479
<code class="descclassname">stat.</code><code class="descname">S_IWOTH</code><a class="headerlink" href="#stat.S_IWOTH" title="Permalink to this definition">¶</a></dt>
 
480
<dd><p>Others have write permission.</p>
 
481
</dd></dl>
 
482
 
 
483
<dl class="data">
 
484
<dt id="stat.S_IXOTH">
 
485
<code class="descclassname">stat.</code><code class="descname">S_IXOTH</code><a class="headerlink" href="#stat.S_IXOTH" title="Permalink to this definition">¶</a></dt>
 
486
<dd><p>Others have execute permission.</p>
 
487
</dd></dl>
 
488
 
 
489
<dl class="data">
 
490
<dt id="stat.S_ENFMT">
 
491
<code class="descclassname">stat.</code><code class="descname">S_ENFMT</code><a class="headerlink" href="#stat.S_ENFMT" title="Permalink to this definition">¶</a></dt>
 
492
<dd><p>System V file locking enforcement.  This flag is shared with <a class="reference internal" href="#stat.S_ISGID" title="stat.S_ISGID"><code class="xref py py-data docutils literal"><span class="pre">S_ISGID</span></code></a>:
 
493
file/record locking is enforced on files that do not have the group
 
494
execution bit (<a class="reference internal" href="#stat.S_IXGRP" title="stat.S_IXGRP"><code class="xref py py-data docutils literal"><span class="pre">S_IXGRP</span></code></a>) set.</p>
 
495
</dd></dl>
 
496
 
 
497
<dl class="data">
 
498
<dt id="stat.S_IREAD">
 
499
<code class="descclassname">stat.</code><code class="descname">S_IREAD</code><a class="headerlink" href="#stat.S_IREAD" title="Permalink to this definition">¶</a></dt>
 
500
<dd><p>Unix V7 synonym for <a class="reference internal" href="#stat.S_IRUSR" title="stat.S_IRUSR"><code class="xref py py-data docutils literal"><span class="pre">S_IRUSR</span></code></a>.</p>
 
501
</dd></dl>
 
502
 
 
503
<dl class="data">
 
504
<dt id="stat.S_IWRITE">
 
505
<code class="descclassname">stat.</code><code class="descname">S_IWRITE</code><a class="headerlink" href="#stat.S_IWRITE" title="Permalink to this definition">¶</a></dt>
 
506
<dd><p>Unix V7 synonym for <a class="reference internal" href="#stat.S_IWUSR" title="stat.S_IWUSR"><code class="xref py py-data docutils literal"><span class="pre">S_IWUSR</span></code></a>.</p>
 
507
</dd></dl>
 
508
 
 
509
<dl class="data">
 
510
<dt id="stat.S_IEXEC">
 
511
<code class="descclassname">stat.</code><code class="descname">S_IEXEC</code><a class="headerlink" href="#stat.S_IEXEC" title="Permalink to this definition">¶</a></dt>
 
512
<dd><p>Unix V7 synonym for <a class="reference internal" href="#stat.S_IXUSR" title="stat.S_IXUSR"><code class="xref py py-data docutils literal"><span class="pre">S_IXUSR</span></code></a>.</p>
 
513
</dd></dl>
 
514
 
 
515
<p>The following flags can be used in the <em>flags</em> argument of <a class="reference internal" href="os.html#os.chflags" title="os.chflags"><code class="xref py py-func docutils literal"><span class="pre">os.chflags()</span></code></a>:</p>
 
516
<dl class="data">
 
517
<dt id="stat.UF_NODUMP">
 
518
<code class="descclassname">stat.</code><code class="descname">UF_NODUMP</code><a class="headerlink" href="#stat.UF_NODUMP" title="Permalink to this definition">¶</a></dt>
 
519
<dd><p>Do not dump the file.</p>
 
520
</dd></dl>
 
521
 
 
522
<dl class="data">
 
523
<dt id="stat.UF_IMMUTABLE">
 
524
<code class="descclassname">stat.</code><code class="descname">UF_IMMUTABLE</code><a class="headerlink" href="#stat.UF_IMMUTABLE" title="Permalink to this definition">¶</a></dt>
 
525
<dd><p>The file may not be changed.</p>
 
526
</dd></dl>
 
527
 
 
528
<dl class="data">
 
529
<dt id="stat.UF_APPEND">
 
530
<code class="descclassname">stat.</code><code class="descname">UF_APPEND</code><a class="headerlink" href="#stat.UF_APPEND" title="Permalink to this definition">¶</a></dt>
 
531
<dd><p>The file may only be appended to.</p>
 
532
</dd></dl>
 
533
 
 
534
<dl class="data">
 
535
<dt id="stat.UF_OPAQUE">
 
536
<code class="descclassname">stat.</code><code class="descname">UF_OPAQUE</code><a class="headerlink" href="#stat.UF_OPAQUE" title="Permalink to this definition">¶</a></dt>
 
537
<dd><p>The directory is opaque when viewed through a union stack.</p>
 
538
</dd></dl>
 
539
 
 
540
<dl class="data">
 
541
<dt id="stat.UF_NOUNLINK">
 
542
<code class="descclassname">stat.</code><code class="descname">UF_NOUNLINK</code><a class="headerlink" href="#stat.UF_NOUNLINK" title="Permalink to this definition">¶</a></dt>
 
543
<dd><p>The file may not be renamed or deleted.</p>
 
544
</dd></dl>
 
545
 
 
546
<dl class="data">
 
547
<dt id="stat.UF_COMPRESSED">
 
548
<code class="descclassname">stat.</code><code class="descname">UF_COMPRESSED</code><a class="headerlink" href="#stat.UF_COMPRESSED" title="Permalink to this definition">¶</a></dt>
 
549
<dd><p>The file is stored compressed (Mac OS X 10.6+).</p>
 
550
</dd></dl>
 
551
 
 
552
<dl class="data">
 
553
<dt id="stat.UF_HIDDEN">
 
554
<code class="descclassname">stat.</code><code class="descname">UF_HIDDEN</code><a class="headerlink" href="#stat.UF_HIDDEN" title="Permalink to this definition">¶</a></dt>
 
555
<dd><p>The file should not be displayed in a GUI (Mac OS X 10.5+).</p>
 
556
</dd></dl>
 
557
 
 
558
<dl class="data">
 
559
<dt id="stat.SF_ARCHIVED">
 
560
<code class="descclassname">stat.</code><code class="descname">SF_ARCHIVED</code><a class="headerlink" href="#stat.SF_ARCHIVED" title="Permalink to this definition">¶</a></dt>
 
561
<dd><p>The file may be archived.</p>
 
562
</dd></dl>
 
563
 
 
564
<dl class="data">
 
565
<dt id="stat.SF_IMMUTABLE">
 
566
<code class="descclassname">stat.</code><code class="descname">SF_IMMUTABLE</code><a class="headerlink" href="#stat.SF_IMMUTABLE" title="Permalink to this definition">¶</a></dt>
 
567
<dd><p>The file may not be changed.</p>
 
568
</dd></dl>
 
569
 
 
570
<dl class="data">
 
571
<dt id="stat.SF_APPEND">
 
572
<code class="descclassname">stat.</code><code class="descname">SF_APPEND</code><a class="headerlink" href="#stat.SF_APPEND" title="Permalink to this definition">¶</a></dt>
 
573
<dd><p>The file may only be appended to.</p>
 
574
</dd></dl>
 
575
 
 
576
<dl class="data">
 
577
<dt id="stat.SF_NOUNLINK">
 
578
<code class="descclassname">stat.</code><code class="descname">SF_NOUNLINK</code><a class="headerlink" href="#stat.SF_NOUNLINK" title="Permalink to this definition">¶</a></dt>
 
579
<dd><p>The file may not be renamed or deleted.</p>
 
580
</dd></dl>
 
581
 
 
582
<dl class="data">
 
583
<dt id="stat.SF_SNAPSHOT">
 
584
<code class="descclassname">stat.</code><code class="descname">SF_SNAPSHOT</code><a class="headerlink" href="#stat.SF_SNAPSHOT" title="Permalink to this definition">¶</a></dt>
 
585
<dd><p>The file is a snapshot file.</p>
 
586
</dd></dl>
 
587
 
 
588
<p>See the *BSD or Mac OS systems man page <em class="manpage">chflags(2)</em> for more information.</p>
 
589
<p>On Windows, the following file attribute constants are available for use when
 
590
testing bits in the <code class="docutils literal"><span class="pre">st_file_attributes</span></code> member returned by <a class="reference internal" href="os.html#os.stat" title="os.stat"><code class="xref py py-func docutils literal"><span class="pre">os.stat()</span></code></a>.
 
591
See the <a class="reference external" href="https://msdn.microsoft.com/en-us/library/windows/desktop/gg258117.aspx">Windows API documentation</a>
 
592
for more detail on the meaning of these constants.</p>
 
593
<dl class="data">
 
594
<dt id="stat.FILE_ATTRIBUTE_ARCHIVE">
 
595
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_ARCHIVE</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_ARCHIVE" title="Permalink to this definition">¶</a></dt>
 
596
<dt id="stat.FILE_ATTRIBUTE_COMPRESSED">
 
597
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_COMPRESSED</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_COMPRESSED" title="Permalink to this definition">¶</a></dt>
 
598
<dt id="stat.FILE_ATTRIBUTE_DEVICE">
 
599
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_DEVICE</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_DEVICE" title="Permalink to this definition">¶</a></dt>
 
600
<dt id="stat.FILE_ATTRIBUTE_DIRECTORY">
 
601
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_DIRECTORY</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_DIRECTORY" title="Permalink to this definition">¶</a></dt>
 
602
<dt id="stat.FILE_ATTRIBUTE_ENCRYPTED">
 
603
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_ENCRYPTED</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_ENCRYPTED" title="Permalink to this definition">¶</a></dt>
 
604
<dt id="stat.FILE_ATTRIBUTE_HIDDEN">
 
605
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_HIDDEN</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_HIDDEN" title="Permalink to this definition">¶</a></dt>
 
606
<dt id="stat.FILE_ATTRIBUTE_INTEGRITY_STREAM">
 
607
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_INTEGRITY_STREAM</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_INTEGRITY_STREAM" title="Permalink to this definition">¶</a></dt>
 
608
<dt id="stat.FILE_ATTRIBUTE_NORMAL">
 
609
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_NORMAL</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_NORMAL" title="Permalink to this definition">¶</a></dt>
 
610
<dt id="stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED">
 
611
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_NOT_CONTENT_INDEXED</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED" title="Permalink to this definition">¶</a></dt>
 
612
<dt id="stat.FILE_ATTRIBUTE_NO_SCRUB_DATA">
 
613
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_NO_SCRUB_DATA</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_NO_SCRUB_DATA" title="Permalink to this definition">¶</a></dt>
 
614
<dt id="stat.FILE_ATTRIBUTE_OFFLINE">
 
615
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_OFFLINE</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_OFFLINE" title="Permalink to this definition">¶</a></dt>
 
616
<dt id="stat.FILE_ATTRIBUTE_READONLY">
 
617
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_READONLY</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_READONLY" title="Permalink to this definition">¶</a></dt>
 
618
<dt id="stat.FILE_ATTRIBUTE_REPARSE_POINT">
 
619
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_REPARSE_POINT</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_REPARSE_POINT" title="Permalink to this definition">¶</a></dt>
 
620
<dt id="stat.FILE_ATTRIBUTE_SPARSE_FILE">
 
621
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_SPARSE_FILE</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_SPARSE_FILE" title="Permalink to this definition">¶</a></dt>
 
622
<dt id="stat.FILE_ATTRIBUTE_SYSTEM">
 
623
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_SYSTEM</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_SYSTEM" title="Permalink to this definition">¶</a></dt>
 
624
<dt id="stat.FILE_ATTRIBUTE_TEMPORARY">
 
625
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_TEMPORARY</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_TEMPORARY" title="Permalink to this definition">¶</a></dt>
 
626
<dt id="stat.FILE_ATTRIBUTE_VIRTUAL">
 
627
<code class="descclassname">stat.</code><code class="descname">FILE_ATTRIBUTE_VIRTUAL</code><a class="headerlink" href="#stat.FILE_ATTRIBUTE_VIRTUAL" title="Permalink to this definition">¶</a></dt>
 
628
<dd><div class="versionadded">
 
629
<p><span class="versionmodified">New in version 3.5.</span></p>
 
630
</div>
 
631
</dd></dl>
 
632
 
 
633
</div>
 
634
 
 
635
 
 
636
          </div>
 
637
        </div>
 
638
      </div>
 
639
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
 
640
        <div class="sphinxsidebarwrapper">
 
641
  <h4>Previous topic</h4>
 
642
  <p class="topless"><a href="fileinput.html"
 
643
                        title="previous chapter">11.3. <code class="docutils literal"><span class="pre">fileinput</span></code> &#8212; Iterate over lines from multiple input streams</a></p>
 
644
  <h4>Next topic</h4>
 
645
  <p class="topless"><a href="filecmp.html"
 
646
                        title="next chapter">11.5. <code class="docutils literal"><span class="pre">filecmp</span></code> &#8212; File and Directory Comparisons</a></p>
 
647
  <div role="note" aria-label="source link">
 
648
    <h3>This Page</h3>
 
649
    <ul class="this-page-menu">
 
650
      <li><a href="../bugs.html">Report a Bug</a></li>
 
651
      <li><a href="../_sources/library/stat.txt"
 
652
            rel="nofollow">Show Source</a></li>
 
653
    </ul>
 
654
  </div>
 
655
        </div>
 
656
      </div>
 
657
      <div class="clearer"></div>
 
658
    </div>  
 
659
    <div class="related" role="navigation" aria-label="related navigation">
 
660
      <h3>Navigation</h3>
 
661
      <ul>
 
662
        <li class="right" style="margin-right: 10px">
 
663
          <a href="../genindex.html" title="General Index"
 
664
             >index</a></li>
 
665
        <li class="right" >
 
666
          <a href="../py-modindex.html" title="Python Module Index"
 
667
             >modules</a> |</li>
 
668
        <li class="right" >
 
669
          <a href="filecmp.html" title="11.5. filecmp — File and Directory Comparisons"
 
670
             >next</a> |</li>
 
671
        <li class="right" >
 
672
          <a href="fileinput.html" title="11.3. fileinput — Iterate over lines from multiple input streams"
 
673
             >previous</a> |</li>
 
674
        <li><img src="../_static/py.png" alt=""
 
675
                 style="vertical-align: middle; margin-top: -1px"/></li>
 
676
        <li><a href="https://www.python.org/">Python</a> &raquo;</li>
 
677
        <li>
 
678
          <span class="version_switcher_placeholder">3.5.2</span>
 
679
          <a href="../index.html">Documentation </a> &raquo;
 
680
        </li>
 
681
 
 
682
          <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &raquo;</li>
 
683
          <li class="nav-item nav-item-2"><a href="filesys.html" >11. File and Directory Access</a> &raquo;</li>
 
684
    <li class="right">
 
685
        
 
686
 
 
687
    <div class="inline-search" style="display: none" role="search">
 
688
        <form class="inline-search" action="../search.html" method="get">
 
689
          <input placeholder="Quick search" type="text" name="q" />
 
690
          <input type="submit" value="Go" />
 
691
          <input type="hidden" name="check_keywords" value="yes" />
 
692
          <input type="hidden" name="area" value="default" />
 
693
        </form>
 
694
    </div>
 
695
    <script type="text/javascript">$('.inline-search').show(0);</script>
 
696
         |
 
697
    </li>
 
698
 
 
699
      </ul>
 
700
    </div>  
 
701
    <div class="footer">
 
702
    &copy; <a href="../copyright.html">Copyright</a> 2001-2016, Python Software Foundation.
 
703
    <br />
 
704
    The Python Software Foundation is a non-profit corporation.
 
705
    <a href="https://www.python.org/psf/donations/">Please donate.</a>
 
706
    <br />
 
707
    Last updated on Sep 23, 2016.
 
708
    <a href="../bugs.html">Found a bug</a>?
 
709
    <br />
 
710
    Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
 
711
    </div>
 
712
 
 
713
  </body>
 
714
</html>
 
 
b'\\ No newline at end of file'