summaryrefslogtreecommitdiff
path: root/devdocs/python~3.12/library%2Fstat.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/python~3.12/library%2Fstat.html
new repository
Diffstat (limited to 'devdocs/python~3.12/library%2Fstat.html')
-rw-r--r--devdocs/python~3.12/library%2Fstat.html247
1 files changed, 247 insertions, 0 deletions
diff --git a/devdocs/python~3.12/library%2Fstat.html b/devdocs/python~3.12/library%2Fstat.html
new file mode 100644
index 00000000..648334a1
--- /dev/null
+++ b/devdocs/python~3.12/library%2Fstat.html
@@ -0,0 +1,247 @@
+ <span id="stat-interpreting-stat-results"></span><h1>stat — Interpreting stat() results</h1> <p><strong>Source code:</strong> <a class="reference external" href="https://github.com/python/cpython/tree/3.12/Lib/stat.py">Lib/stat.py</a></p> <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>stat</code></a> module defines constants and functions for interpreting the results of <a class="reference internal" href="os#os.stat" title="os.stat"><code>os.stat()</code></a>, <a class="reference internal" href="os#os.fstat" title="os.fstat"><code>os.fstat()</code></a> and <a class="reference internal" href="os#os.lstat" title="os.lstat"><code>os.lstat()</code></a> (if they exist). For complete details about the <code>stat()</code>, <code>fstat()</code> and <code>lstat()</code> calls, consult the documentation for your system.</p> <div class="versionchanged"> <p><span class="versionmodified changed">Changed in version 3.4: </span>The stat module is backed by a C implementation.</p> </div> <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>stat</code></a> module defines the following functions to test for specific file types:</p> <dl class="py function"> <dt class="sig sig-object py" id="stat.S_ISDIR">
+<code>stat.S_ISDIR(mode)</code> </dt> <dd>
+<p>Return non-zero if the mode is from a directory.</p> </dd>
+</dl> <dl class="py function"> <dt class="sig sig-object py" id="stat.S_ISCHR">
+<code>stat.S_ISCHR(mode)</code> </dt> <dd>
+<p>Return non-zero if the mode is from a character special device file.</p> </dd>
+</dl> <dl class="py function"> <dt class="sig sig-object py" id="stat.S_ISBLK">
+<code>stat.S_ISBLK(mode)</code> </dt> <dd>
+<p>Return non-zero if the mode is from a block special device file.</p> </dd>
+</dl> <dl class="py function"> <dt class="sig sig-object py" id="stat.S_ISREG">
+<code>stat.S_ISREG(mode)</code> </dt> <dd>
+<p>Return non-zero if the mode is from a regular file.</p> </dd>
+</dl> <dl class="py function"> <dt class="sig sig-object py" id="stat.S_ISFIFO">
+<code>stat.S_ISFIFO(mode)</code> </dt> <dd>
+<p>Return non-zero if the mode is from a FIFO (named pipe).</p> </dd>
+</dl> <dl class="py function"> <dt class="sig sig-object py" id="stat.S_ISLNK">
+<code>stat.S_ISLNK(mode)</code> </dt> <dd>
+<p>Return non-zero if the mode is from a symbolic link.</p> </dd>
+</dl> <dl class="py function"> <dt class="sig sig-object py" id="stat.S_ISSOCK">
+<code>stat.S_ISSOCK(mode)</code> </dt> <dd>
+<p>Return non-zero if the mode is from a socket.</p> </dd>
+</dl> <dl class="py function"> <dt class="sig sig-object py" id="stat.S_ISDOOR">
+<code>stat.S_ISDOOR(mode)</code> </dt> <dd>
+<p>Return non-zero if the mode is from a door.</p> <div class="versionadded"> <p><span class="versionmodified added">New in version 3.4.</span></p> </div> </dd>
+</dl> <dl class="py function"> <dt class="sig sig-object py" id="stat.S_ISPORT">
+<code>stat.S_ISPORT(mode)</code> </dt> <dd>
+<p>Return non-zero if the mode is from an event port.</p> <div class="versionadded"> <p><span class="versionmodified added">New in version 3.4.</span></p> </div> </dd>
+</dl> <dl class="py function"> <dt class="sig sig-object py" id="stat.S_ISWHT">
+<code>stat.S_ISWHT(mode)</code> </dt> <dd>
+<p>Return non-zero if the mode is from a whiteout.</p> <div class="versionadded"> <p><span class="versionmodified added">New in version 3.4.</span></p> </div> </dd>
+</dl> <p>Two additional functions are defined for more general manipulation of the file’s mode:</p> <dl class="py function"> <dt class="sig sig-object py" id="stat.S_IMODE">
+<code>stat.S_IMODE(mode)</code> </dt> <dd>
+<p>Return the portion of the file’s mode that can be set by <a class="reference internal" href="os#os.chmod" title="os.chmod"><code>os.chmod()</code></a>—that is, the file’s permission bits, plus the sticky bit, set-group-id, and set-user-id bits (on systems that support them).</p> </dd>
+</dl> <dl class="py function"> <dt class="sig sig-object py" id="stat.S_IFMT">
+<code>stat.S_IFMT(mode)</code> </dt> <dd>
+<p>Return the portion of the file’s mode that describes the file type (used by the <code>S_IS*()</code> functions above).</p> </dd>
+</dl> <p>Normally, you would use the <code>os.path.is*()</code> functions for testing the type of a file; the functions here are useful when you are doing multiple tests of the same file and wish to avoid the overhead of the <code>stat()</code> system call for each test. These are also useful when checking for information about a file that isn’t handled by <a class="reference internal" href="os.path#module-os.path" title="os.path: Operations on pathnames."><code>os.path</code></a>, like the tests for block and character devices.</p> <p>Example:</p> <pre data-language="python">import os, sys
+from stat import *
+
+def walktree(top, callback):
+ '''recursively descend the directory tree rooted at top,
+ calling the callback function for each regular file'''
+
+ for f in os.listdir(top):
+ pathname = os.path.join(top, f)
+ mode = os.lstat(pathname).st_mode
+ if S_ISDIR(mode):
+ # It's a directory, recurse into it
+ walktree(pathname, callback)
+ elif S_ISREG(mode):
+ # It's a file, call the callback function
+ callback(pathname)
+ else:
+ # Unknown file type, print a message
+ print('Skipping %s' % pathname)
+
+def visitfile(file):
+ print('visiting', file)
+
+if __name__ == '__main__':
+ walktree(sys.argv[1], visitfile)
+</pre> <p>An additional utility function is provided to convert a file’s mode in a human readable string:</p> <dl class="py function"> <dt class="sig sig-object py" id="stat.filemode">
+<code>stat.filemode(mode)</code> </dt> <dd>
+<p>Convert a file’s mode to a string of the form ‘-rwxrwxrwx’.</p> <div class="versionadded"> <p><span class="versionmodified added">New in version 3.3.</span></p> </div> <div class="versionchanged"> <p><span class="versionmodified changed">Changed in version 3.4: </span>The function supports <a class="reference internal" href="#stat.S_IFDOOR" title="stat.S_IFDOOR"><code>S_IFDOOR</code></a>, <a class="reference internal" href="#stat.S_IFPORT" title="stat.S_IFPORT"><code>S_IFPORT</code></a> and <a class="reference internal" href="#stat.S_IFWHT" title="stat.S_IFWHT"><code>S_IFWHT</code></a>.</p> </div> </dd>
+</dl> <p>All the variables below are simply symbolic indexes into the 10-tuple returned by <a class="reference internal" href="os#os.stat" title="os.stat"><code>os.stat()</code></a>, <a class="reference internal" href="os#os.fstat" title="os.fstat"><code>os.fstat()</code></a> or <a class="reference internal" href="os#os.lstat" title="os.lstat"><code>os.lstat()</code></a>.</p> <dl class="py data"> <dt class="sig sig-object py" id="stat.ST_MODE">
+<code>stat.ST_MODE</code> </dt> <dd>
+<p>Inode protection mode.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.ST_INO">
+<code>stat.ST_INO</code> </dt> <dd>
+<p>Inode number.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.ST_DEV">
+<code>stat.ST_DEV</code> </dt> <dd>
+<p>Device inode resides on.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.ST_NLINK">
+<code>stat.ST_NLINK</code> </dt> <dd>
+<p>Number of links to the inode.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.ST_UID">
+<code>stat.ST_UID</code> </dt> <dd>
+<p>User id of the owner.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.ST_GID">
+<code>stat.ST_GID</code> </dt> <dd>
+<p>Group id of the owner.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.ST_SIZE">
+<code>stat.ST_SIZE</code> </dt> <dd>
+<p>Size in bytes of a plain file; amount of data waiting on some special files.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.ST_ATIME">
+<code>stat.ST_ATIME</code> </dt> <dd>
+<p>Time of last access.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.ST_MTIME">
+<code>stat.ST_MTIME</code> </dt> <dd>
+<p>Time of last modification.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.ST_CTIME">
+<code>stat.ST_CTIME</code> </dt> <dd>
+<p>The “ctime” as reported by the operating system. On some systems (like Unix) is the time of the last metadata change, and, on others (like Windows), is the creation time (see platform documentation for details).</p> </dd>
+</dl> <p>The interpretation of “file size” changes according to the file type. For plain files this is the size of the file in bytes. For FIFOs and sockets under most flavors of Unix (including Linux in particular), the “size” is the number of bytes waiting to be read at the time of the call to <a class="reference internal" href="os#os.stat" title="os.stat"><code>os.stat()</code></a>, <a class="reference internal" href="os#os.fstat" title="os.fstat"><code>os.fstat()</code></a>, or <a class="reference internal" href="os#os.lstat" title="os.lstat"><code>os.lstat()</code></a>; this can sometimes be useful, especially for polling one of these special files after a non-blocking open. The meaning of the size field for other character and block devices varies more, depending on the implementation of the underlying system call.</p> <p>The variables below define the flags used in the <a class="reference internal" href="#stat.ST_MODE" title="stat.ST_MODE"><code>ST_MODE</code></a> field.</p> <p>Use of the functions above is more portable than use of the first set of flags:</p> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IFSOCK">
+<code>stat.S_IFSOCK</code> </dt> <dd>
+<p>Socket.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IFLNK">
+<code>stat.S_IFLNK</code> </dt> <dd>
+<p>Symbolic link.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IFREG">
+<code>stat.S_IFREG</code> </dt> <dd>
+<p>Regular file.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IFBLK">
+<code>stat.S_IFBLK</code> </dt> <dd>
+<p>Block device.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IFDIR">
+<code>stat.S_IFDIR</code> </dt> <dd>
+<p>Directory.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IFCHR">
+<code>stat.S_IFCHR</code> </dt> <dd>
+<p>Character device.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IFIFO">
+<code>stat.S_IFIFO</code> </dt> <dd>
+<p>FIFO.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IFDOOR">
+<code>stat.S_IFDOOR</code> </dt> <dd>
+<p>Door.</p> <div class="versionadded"> <p><span class="versionmodified added">New in version 3.4.</span></p> </div> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IFPORT">
+<code>stat.S_IFPORT</code> </dt> <dd>
+<p>Event port.</p> <div class="versionadded"> <p><span class="versionmodified added">New in version 3.4.</span></p> </div> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IFWHT">
+<code>stat.S_IFWHT</code> </dt> <dd>
+<p>Whiteout.</p> <div class="versionadded"> <p><span class="versionmodified added">New in version 3.4.</span></p> </div> </dd>
+</dl> <div class="admonition note"> <p class="admonition-title">Note</p> <p><a class="reference internal" href="#stat.S_IFDOOR" title="stat.S_IFDOOR"><code>S_IFDOOR</code></a>, <a class="reference internal" href="#stat.S_IFPORT" title="stat.S_IFPORT"><code>S_IFPORT</code></a> or <a class="reference internal" href="#stat.S_IFWHT" title="stat.S_IFWHT"><code>S_IFWHT</code></a> are defined as 0 when the platform does not have support for the file types.</p> </div> <p>The following flags can also be used in the <em>mode</em> argument of <a class="reference internal" href="os#os.chmod" title="os.chmod"><code>os.chmod()</code></a>:</p> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_ISUID">
+<code>stat.S_ISUID</code> </dt> <dd>
+<p>Set UID bit.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_ISGID">
+<code>stat.S_ISGID</code> </dt> <dd>
+<p>Set-group-ID bit. This bit has several special uses. For a directory it indicates that BSD semantics is to be used for that directory: files created there inherit their group ID from the directory, not from the effective group ID of the creating process, and directories created there will also get the <a class="reference internal" href="#stat.S_ISGID" title="stat.S_ISGID"><code>S_ISGID</code></a> bit set. For a file that does not have the group execution bit (<a class="reference internal" href="#stat.S_IXGRP" title="stat.S_IXGRP"><code>S_IXGRP</code></a>) set, the set-group-ID bit indicates mandatory file/record locking (see also <a class="reference internal" href="#stat.S_ENFMT" title="stat.S_ENFMT"><code>S_ENFMT</code></a>).</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_ISVTX">
+<code>stat.S_ISVTX</code> </dt> <dd>
+<p>Sticky bit. When this bit is set on a directory it means that a file in that directory can be renamed or deleted only by the owner of the file, by the owner of the directory, or by a privileged process.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IRWXU">
+<code>stat.S_IRWXU</code> </dt> <dd>
+<p>Mask for file owner permissions.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IRUSR">
+<code>stat.S_IRUSR</code> </dt> <dd>
+<p>Owner has read permission.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IWUSR">
+<code>stat.S_IWUSR</code> </dt> <dd>
+<p>Owner has write permission.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IXUSR">
+<code>stat.S_IXUSR</code> </dt> <dd>
+<p>Owner has execute permission.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IRWXG">
+<code>stat.S_IRWXG</code> </dt> <dd>
+<p>Mask for group permissions.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IRGRP">
+<code>stat.S_IRGRP</code> </dt> <dd>
+<p>Group has read permission.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IWGRP">
+<code>stat.S_IWGRP</code> </dt> <dd>
+<p>Group has write permission.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IXGRP">
+<code>stat.S_IXGRP</code> </dt> <dd>
+<p>Group has execute permission.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IRWXO">
+<code>stat.S_IRWXO</code> </dt> <dd>
+<p>Mask for permissions for others (not in group).</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IROTH">
+<code>stat.S_IROTH</code> </dt> <dd>
+<p>Others have read permission.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IWOTH">
+<code>stat.S_IWOTH</code> </dt> <dd>
+<p>Others have write permission.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IXOTH">
+<code>stat.S_IXOTH</code> </dt> <dd>
+<p>Others have execute permission.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_ENFMT">
+<code>stat.S_ENFMT</code> </dt> <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>S_ISGID</code></a>: file/record locking is enforced on files that do not have the group execution bit (<a class="reference internal" href="#stat.S_IXGRP" title="stat.S_IXGRP"><code>S_IXGRP</code></a>) set.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IREAD">
+<code>stat.S_IREAD</code> </dt> <dd>
+<p>Unix V7 synonym for <a class="reference internal" href="#stat.S_IRUSR" title="stat.S_IRUSR"><code>S_IRUSR</code></a>.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IWRITE">
+<code>stat.S_IWRITE</code> </dt> <dd>
+<p>Unix V7 synonym for <a class="reference internal" href="#stat.S_IWUSR" title="stat.S_IWUSR"><code>S_IWUSR</code></a>.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.S_IEXEC">
+<code>stat.S_IEXEC</code> </dt> <dd>
+<p>Unix V7 synonym for <a class="reference internal" href="#stat.S_IXUSR" title="stat.S_IXUSR"><code>S_IXUSR</code></a>.</p> </dd>
+</dl> <p>The following flags can be used in the <em>flags</em> argument of <a class="reference internal" href="os#os.chflags" title="os.chflags"><code>os.chflags()</code></a>:</p> <dl class="py data"> <dt class="sig sig-object py" id="stat.UF_NODUMP">
+<code>stat.UF_NODUMP</code> </dt> <dd>
+<p>Do not dump the file.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.UF_IMMUTABLE">
+<code>stat.UF_IMMUTABLE</code> </dt> <dd>
+<p>The file may not be changed.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.UF_APPEND">
+<code>stat.UF_APPEND</code> </dt> <dd>
+<p>The file may only be appended to.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.UF_OPAQUE">
+<code>stat.UF_OPAQUE</code> </dt> <dd>
+<p>The directory is opaque when viewed through a union stack.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.UF_NOUNLINK">
+<code>stat.UF_NOUNLINK</code> </dt> <dd>
+<p>The file may not be renamed or deleted.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.UF_COMPRESSED">
+<code>stat.UF_COMPRESSED</code> </dt> <dd>
+<p>The file is stored compressed (macOS 10.6+).</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.UF_HIDDEN">
+<code>stat.UF_HIDDEN</code> </dt> <dd>
+<p>The file should not be displayed in a GUI (macOS 10.5+).</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.SF_ARCHIVED">
+<code>stat.SF_ARCHIVED</code> </dt> <dd>
+<p>The file may be archived.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.SF_IMMUTABLE">
+<code>stat.SF_IMMUTABLE</code> </dt> <dd>
+<p>The file may not be changed.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.SF_APPEND">
+<code>stat.SF_APPEND</code> </dt> <dd>
+<p>The file may only be appended to.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.SF_NOUNLINK">
+<code>stat.SF_NOUNLINK</code> </dt> <dd>
+<p>The file may not be renamed or deleted.</p> </dd>
+</dl> <dl class="py data"> <dt class="sig sig-object py" id="stat.SF_SNAPSHOT">
+<code>stat.SF_SNAPSHOT</code> </dt> <dd>
+<p>The file is a snapshot file.</p> </dd>
+</dl> <p>See the *BSD or macOS systems man page <em class="manpage"><a class="manpage reference external" href="https://manpages.debian.org/chflags(2)">chflags(2)</a></em> for more information.</p> <p>On Windows, the following file attribute constants are available for use when testing bits in the <code>st_file_attributes</code> member returned by <a class="reference internal" href="os#os.stat" title="os.stat"><code>os.stat()</code></a>. See the <a class="reference external" href="https://msdn.microsoft.com/en-us/library/windows/desktop/gg258117.aspx">Windows API documentation</a> for more detail on the meaning of these constants.</p> <dl class="py data"> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_ARCHIVE">
+<code>stat.FILE_ATTRIBUTE_ARCHIVE</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_COMPRESSED">
+<code>stat.FILE_ATTRIBUTE_COMPRESSED</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_DEVICE">
+<code>stat.FILE_ATTRIBUTE_DEVICE</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_DIRECTORY">
+<code>stat.FILE_ATTRIBUTE_DIRECTORY</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_ENCRYPTED">
+<code>stat.FILE_ATTRIBUTE_ENCRYPTED</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_HIDDEN">
+<code>stat.FILE_ATTRIBUTE_HIDDEN</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_INTEGRITY_STREAM">
+<code>stat.FILE_ATTRIBUTE_INTEGRITY_STREAM</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_NORMAL">
+<code>stat.FILE_ATTRIBUTE_NORMAL</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED">
+<code>stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_NO_SCRUB_DATA">
+<code>stat.FILE_ATTRIBUTE_NO_SCRUB_DATA</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_OFFLINE">
+<code>stat.FILE_ATTRIBUTE_OFFLINE</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_READONLY">
+<code>stat.FILE_ATTRIBUTE_READONLY</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_REPARSE_POINT">
+<code>stat.FILE_ATTRIBUTE_REPARSE_POINT</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_SPARSE_FILE">
+<code>stat.FILE_ATTRIBUTE_SPARSE_FILE</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_SYSTEM">
+<code>stat.FILE_ATTRIBUTE_SYSTEM</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_TEMPORARY">
+<code>stat.FILE_ATTRIBUTE_TEMPORARY</code> </dt> <dt class="sig sig-object py" id="stat.FILE_ATTRIBUTE_VIRTUAL">
+<code>stat.FILE_ATTRIBUTE_VIRTUAL</code> </dt> <dd>
+<div class="versionadded"> <p><span class="versionmodified added">New in version 3.5.</span></p> </div> </dd>
+</dl> <p>On Windows, the following constants are available for comparing against the <code>st_reparse_tag</code> member returned by <a class="reference internal" href="os#os.lstat" title="os.lstat"><code>os.lstat()</code></a>. These are well-known constants, but are not an exhaustive list.</p> <dl class="py data"> <dt class="sig sig-object py" id="stat.IO_REPARSE_TAG_SYMLINK">
+<code>stat.IO_REPARSE_TAG_SYMLINK</code> </dt> <dt class="sig sig-object py" id="stat.IO_REPARSE_TAG_MOUNT_POINT">
+<code>stat.IO_REPARSE_TAG_MOUNT_POINT</code> </dt> <dt class="sig sig-object py" id="stat.IO_REPARSE_TAG_APPEXECLINK">
+<code>stat.IO_REPARSE_TAG_APPEXECLINK</code> </dt> <dd>
+<div class="versionadded"> <p><span class="versionmodified added">New in version 3.8.</span></p> </div> </dd>
+</dl> <div class="_attribution">
+ <p class="_attribution-p">
+ &copy; 2001&ndash;2023 Python Software Foundation<br>Licensed under the PSF License.<br>
+ <a href="https://docs.python.org/3.12/library/stat.html" class="_attribution-link">https://docs.python.org/3.12/library/stat.html</a>
+ </p>
+</div>