Latest recipes tagged "remove"http://code.activestate.com/recipes/tags/remove/new/2014-03-08T21:17:41-08:00ActiveState Code RecipesReimplementation of rmtree supporting Windows reparse points (Python) 2014-03-08T21:17:41-08:00Charles Grunwaldhttp://code.activestate.com/recipes/users/4175823/http://code.activestate.com/recipes/578849-reimplementation-of-rmtree-supporting-windows-repa/ <p style="color: grey"> Python recipe 578849 by <a href="/recipes/users/4175823/">Charles Grunwald</a> (<a href="/recipes/tags/ctypes/">ctypes</a>, <a href="/recipes/tags/directories/">directories</a>, <a href="/recipes/tags/files/">files</a>, <a href="/recipes/tags/remove/">remove</a>, <a href="/recipes/tags/win32/">win32</a>). Revision 3. </p> <p>Ctypes-based implementation of shutil.rmtree that correctly handles Windows reparse point folders. (symbolic links, junctions, etc)</p> List 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>