Files
hustoj/web/cppreference-zh/chmhelp/cpp-filesystem-status_known.html
2025-08-01 12:57:54 +08:00

83 lines
4.6 KiB
HTML

<!DOCTYPE html>
<html lang="zh" dir="ltr" class="client-nojs" xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh">
<head><meta http-equiv="x-ua-compatible" content="ie=edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>std::filesystem::status_known</title>
<link rel="stylesheet" href="ext.css" />
<link rel="stylesheet" href="site_modules.css" />
</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-cpp_filesystem_status_known skin-cppreference2 action-view cpp-navbar">
<div id="cpp-content-base">
<div id="content"><a id="top"></a>
<h1 id="firstHeading" class="firstHeading"><span style="font-size:0.7em; line-height:130%">std::filesystem::</span>status_known</h1>
<div id="bodyContent">
<div id="contentSub"><span class="subpages">&lt; <a href="cpp.html">cpp</a>&lrm; | <a href="cpp-filesystem.html">filesystem</a></span></div>
<div id="mw-content-text" lang="zh" dir="ltr" class="mw-content-ltr" xml:lang="zh">
<table class="t-dcl-begin">
<tbody>
<tr class="t-dsc-header">
<td>
<div>&#23450;&#20041;&#20110;&#22836;&#25991;&#20214; <code><a href="cpp-header-filesystem.html">&lt;filesystem&gt;</a></code></div>
</td>
<td></td>
<td></td>
</tr>
<tr class="t-dcl t-since-cxx17">
<td>
<div><span class="mw-geshi cpp source-cpp"><span class="kw4">bool</span> status_known<span class="br0">(</span> <a href="cpp-filesystem-file_status.html"><span class="kw2206">std::<span class="me2">filesystem</span><span class="sy4">::</span><span class="me2">file_status</span></span></a> s <span class="br0">)</span> <span class="kw1">noexcept</span><span class="sy4">;</span></span></div>
</td>
<td>(1)</td>
<td><span class="t-mark-rev t-since-cxx17">(C++17 &#36215;)</span></td>
</tr>
<tr class="t-dcl-sep">
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p>&#26816;&#26597;&#32473;&#23450;&#25991;&#20214;&#29366;&#24577;&#26159;&#21542;&#24050;&#30693;&#65292;&#31561;&#20215;&#20110; <span class="t-c"><span class="mw-geshi cpp source-cpp">s.<span class="me1">type</span><span class="br0">(</span><span class="br0">)</span> <span class="sy3">!</span><span class="sy1">=</span> file_type<span class="sy4">::</span><span class="me2">none</span></span></span> &#12290;</p>
<h3><span class="mw-headline" id=".E5.8F.82.E6.95.B0">&#21442;&#25968;</span></h3>
<table class="t-par-begin">
<tr class="t-par">
<td>s</td>
<td>-</td>
<td>&#35201;&#26816;&#27979;&#30340;&#25991;&#20214;&#29366;&#24577;</td>
</tr>
</table>
<h3><span class="mw-headline" id=".E8.BF.94.E5.9B.9E.E5.80.BC">&#36820;&#22238;&#20540;</span></h3>
<p>&#33509;&#32473;&#23450;&#25991;&#20214;&#29366;&#24577;&#26159;&#24050;&#30693;&#25991;&#20214;&#29366;&#24577;&#65292;&#21017;&#20026; <span class="t-c"><span class="mw-geshi cpp source-cpp"><span class="kw2">true</span></span></span></p>
<h3><span class="mw-headline" id=".E6.B3.A8.E6.84.8F">&#27880;&#24847;</span></h3>
<p>&#26080;&#20851;&#20046;&#21517;&#31216;&#65292;&#35813;&#20989;&#25968;&#26816;&#26597; <code>file_type::none</code> &#30340;&#25991;&#20214;&#29366;&#24577;&#65288;&#34920;&#31034;&#38169;&#35823;&#20986;&#29616;&#65289;&#65292;&#32780;&#38750; <code>file_type::unknown</code> &#65288;&#34920;&#31034;&#25991;&#20214;&#23384;&#22312;&#65292;&#20294;&#20854;&#31867;&#22411;&#26080;&#27861;&#30830;&#23450;&#65289;&#12290;</p>
<h3><span class="mw-headline" id=".E5.8F.82.E9.98.85">&#21442;&#38405;</span></h3>
<table class="t-dsc-begin">
<tr class="t-dsc">
<td>
<div class="t-dsc-member-div">
<div><a href="cpp-filesystem-status.html"><span class="t-lines"><span>status</span><span>symlink_status</span></span></a></div>
<div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx17">(C++17)</span></span><span><span class="t-mark-rev t-since-cxx17">(C++17)</span></span></span></div>
</div>
</td>
<td>&#30830;&#23450;&#25991;&#20214;&#23646;&#24615;<br />
&#30830;&#23450;&#25991;&#20214;&#23646;&#24615;&#65292;&#26816;&#26597;&#31526;&#21495;&#38142;&#25509;&#30446;&#26631;<br />
<span class="t-mark">(&#20989;&#25968;)</span></td>
</tr>
<tr class="t-dsc">
<td>
<div class="t-dsc-member-div">
<div><a href="cpp-filesystem-directory_entry-status.html"><span class="t-lines"><span>status</span><span>symlink_status</span></span></a></div>
</div>
</td>
<td>&#27492; directory_entry &#25152;&#25351;&#20195;&#30340;&#25991;&#20214;&#30340;&#29366;&#24577;<br />
&#27492; directory_entry &#25152;&#25351;&#20195;&#30340;&#25991;&#20214;&#30340;&#31526;&#21495;&#38142;&#25509;&#29366;&#24577;<br />
<span class="t-mark">(<code>std::filesystem::directory_entry</code> &#30340;&#20844;&#24320;&#25104;&#21592;&#20989;&#25968;)</span></td>
</tr>
</table>
</div>
<div class="visualClear"></div>
</div>
</div>
</div>
</body>
</html>