<table><tr><td style="">davidedmundson created this revision.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />davidedmundson requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D17021">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The trash ioslave currently handles:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">working symlinks at the toplevel</li>
<li class="remarkup-list-item">broken symlinks at the toplevel</li>
<li class="remarkup-list-item">working symlinks in subdirectories</li>
</ul>
<p>but broken symlinks in a subdirectory gets lost.</p>
<p>This is because subdirs are populated from a QDir::listEntries in the<br />
subdirectory folder, which by default filters out broken symlinks.</p>
<p>It's important to list them so that we we restore the directory as<br />
otherwise we lose data. The symlink could become non-dead once files are<br />
restored.</p>
<p>BUG: 400990</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Relevant unit test</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17021">https://phabricator.kde.org/D17021</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/ioslaves/trash/tests/testtrash.cpp<br />
src/ioslaves/trash/tests/testtrash.h<br />
src/ioslaves/trash/trashimpl.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>