Skip to content

Commit a42fcae

Browse files
committed
deploy: c249eba
1 parent 7b94e41 commit a42fcae

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

dev/src/uu_install/install.rs.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,19 @@
786786
<span id="781">781</span>
787787
<span id="782">782</span>
788788
<span id="783">783</span>
789+
<span id="784">784</span>
790+
<span id="785">785</span>
791+
<span id="786">786</span>
792+
<span id="787">787</span>
793+
<span id="788">788</span>
794+
<span id="789">789</span>
795+
<span id="790">790</span>
796+
<span id="791">791</span>
797+
<span id="792">792</span>
798+
<span id="793">793</span>
799+
<span id="794">794</span>
800+
<span id="795">795</span>
801+
<span id="796">796</span>
789802
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.</span>
790803
<span class="comment">// *</span>
791804
<span class="comment">// * (c) Ben Eills &lt;ben@beneills.com&gt;</span>
@@ -1252,6 +1265,19 @@
12521265
} <span class="kw">else</span> {
12531266
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">parent</span>) <span class="op">=</span> <span class="ident">target</span>.<span class="ident">parent</span>() {
12541267
<span class="kw">if</span> <span class="op">!</span><span class="ident">parent</span>.<span class="ident">exists</span>() <span class="op">&amp;&amp;</span> <span class="ident">b</span>.<span class="ident">create_leading</span> {
1268+
<span class="kw">if</span> <span class="ident">b</span>.<span class="ident">verbose</span> {
1269+
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">result</span> <span class="op">=</span> <span class="ident">PathBuf::new</span>();
1270+
<span class="comment">// When creating directories with -Dv, show directory creations step</span>
1271+
<span class="comment">// by step</span>
1272+
<span class="kw">for</span> <span class="ident">part</span> <span class="kw">in</span> <span class="ident">parent</span>.<span class="ident">components</span>() {
1273+
<span class="ident">result</span>.<span class="ident">push</span>(<span class="ident">part</span>.<span class="ident">as_os_str</span>());
1274+
<span class="kw">if</span> <span class="op">!</span><span class="ident">Path::new</span>(<span class="ident">part</span>.<span class="ident">as_os_str</span>()).<span class="ident">is_dir</span>() {
1275+
<span class="comment">// Don&#39;t display when the directory already exists</span>
1276+
<span class="macro">println!</span>(<span class="string">&quot;install: creating directory {}&quot;</span>, <span class="ident">result</span>.<span class="ident">quote</span>());
1277+
}
1278+
}
1279+
}
1280+
12551281
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Err</span>(<span class="ident">e</span>) <span class="op">=</span> <span class="ident">fs::create_dir_all</span>(<span class="ident">parent</span>) {
12561282
<span class="kw">return</span> <span class="prelude-val">Err</span>(<span class="ident">InstallError::CreateDirFailed</span>(<span class="ident">parent</span>.<span class="ident">to_path_buf</span>(), <span class="ident">e</span>).<span class="ident">into</span>());
12571283
}

dev/uu_install/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</nav>
55
<nav class="sidebar"><a class="sidebar-logo" href="../uu_install/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div>
66
</a><h2 class="location"><a href="#">Crate uu_install</a></h2><div class="sidebar-elems"><div class="block"><ul><li class="version">Version 0.0.13</li><li><a id="all-types" href="all.html">All Items</a></li></div></ul><section><div class="block"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div></section><div id="sidebar-vars" data-name="uu_install" data-ty="mod" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../uu_install/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
7-
<h1 class="fqn"><span class="in-band">Crate <a class="mod" href="#">uu_install</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/uu_install/install.rs.html#10-783">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
7+
<h1 class="fqn"><span class="in-band">Crate <a class="mod" href="#">uu_install</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/uu_install/install.rs.html#10-796">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
88
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Behavior.html" title="uu_install::Behavior struct">Behavior</a></div><div class="item-right docblock-short"></div></div></div><h2 id="enums" class="small-section-header"><a href="#enums">Enums</a></h2>
99
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.MainFunction.html" title="uu_install::MainFunction enum">MainFunction</a></div><div class="item-right docblock-short"></div></div></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2>
1010
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.uu_app.html" title="uu_install::uu_app fn">uu_app</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.uumain.html" title="uu_install::uumain fn">uumain</a></div><div class="item-right docblock-short"></div></div></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="uu_install" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.60.0 (7737e0b5c 2022-04-04)" ></div>

0 commit comments

Comments
 (0)