Popular recipes tagged "remove" but not "files"http://code.activestate.com/recipes/tags/remove-files/2012-11-01T10:30:58-07:00ActiveState Code RecipesList comparison, difference and more using set & frozenset (Python)
2012-11-01T10:30:58-07:00Scott S-Allenhttp://code.activestate.com/recipes/users/4181178/http://code.activestate.com/recipes/578310-list-comparison-difference-and-more-using-set-froz/
<p style="color: grey">
Python
recipe 578310
by <a href="/recipes/users/4181178/">Scott S-Allen</a>
(<a href="/recipes/tags/compare/">compare</a>, <a href="/recipes/tags/contain/">contain</a>, <a href="/recipes/tags/difference/">difference</a>, <a href="/recipes/tags/lambda/">lambda</a>, <a href="/recipes/tags/list/">list</a>, <a href="/recipes/tags/remove/">remove</a>, <a href="/recipes/tags/set/">set</a>, <a href="/recipes/tags/union/">union</a>).
</p>
<p>Python has a powerful suite of tools for comparing lists by way of sets and frozensets. Here are a few examples and conveniences that many newcomers, even a few seasoned developers, are unaware.</p>
xnview backup files remove utility (Python)
2010-07-06T18:09:43-07:00Denis Barmenkovhttp://code.activestate.com/recipes/users/57155/http://code.activestate.com/recipes/577281-xnview-backup-files-remove-utility/
<p style="color: grey">
Python
recipe 577281
by <a href="/recipes/users/57155/">Denis Barmenkov</a>
(<a href="/recipes/tags/backup/">backup</a>, <a href="/recipes/tags/cleanup/">cleanup</a>, <a href="/recipes/tags/remove/">remove</a>, <a href="/recipes/tags/xnview/">xnview</a>).
Revision 3.
</p>
<p>Currently XnView image viewer (versions up to 1.97.6) correctly rotate images only when option "[x] make backup" set.</p>
<p>Backup files have added name part '.xnbak' before extension:</p>
<pre class="prettyprint"><code>original file: IMG0001.jpg
backup file: IMG0001.xnbak.jpg
</code></pre>
<p>Attached script take a root directory in command line and remove backup files created by XnView only when rotated file present in same directory.</p>