<?xml version="1.0" encoding="utf-8"?><!-- generator="b2evolution/6.9.7-stable" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Mr N - Latest Comments on Java's File.renameTo fails on Windows</title>
		<link>https://www.bigsoft.co.uk/blog/?disp=comments</link>
		<atom:link rel="self" type="application/rss+xml" href="https://www.bigsoft.co.uk/blog/?tempskin=_rss2&#38;disp=comments&#38;p=182" />
		<description></description>
		<language>en-GB</language>
		<docs>http://backend.userland.com/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=6.9.7-stable"/>
		<ttl>60</ttl>
		<item>
			<title>davidnewcomb [Member] in response to: Java's File.renameTo fails on Windows</title>
			<pubDate>Tue, 04 Aug 2015 11:48:49 +0000</pubDate>
			<dc:creator><a href="https://www.bigsoft.co.uk/?disp=user&amp;user_ID=1" title="Show the user profile" class="login user nowrap" rel="bubbletip_user_1"><span class="identity_link_username">davidnewcomb</span></a> <span class="bUser-member-tag">[Member]</span></dc:creator>
			<guid isPermaLink="false">c2835@https://www.bigsoft.co.uk/</guid>
			<description>I would open the file, find out what you want, close the file then move it to the correct folder.</description>
			<content:encoded><![CDATA[I would open the file, find out what you want, close the file then move it to the correct folder.]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2010/02/02/file-renameto-always-fails-on-windows#c2835</link>
		</item>
		<item>
			<title> Terrance [Visitor] in response to: Java's File.renameTo fails on Windows</title>
			<pubDate>Fri, 24 Jul 2015 09:57:07 +0000</pubDate>
			<dc:creator><span class="user anonymous" rel="bubbletip_comment_2833">Terrance</span> <span class="bUser-anonymous-tag">[Visitor]</span></dc:creator>
			<guid isPermaLink="false">c2833@https://www.bigsoft.co.uk/</guid>
			<description>I am working with over 4000 pdfs that I want to sort by size into two separate folders, landscape and portrait folders. I wrote  the code to get that done but I am having the same problem with the result that the files are not being renamed to the folders.  However, I have to get the pagesize for each pdf file and then move it to the landscape folder or portrait folder depending if height&gt;width. how do I close the inputstream without touching the file and expect the  result?</description>
			<content:encoded><![CDATA[I am working with over 4000 pdfs that I want to sort by size into two separate folders, landscape and portrait folders. I wrote  the code to get that done but I am having the same problem with the result that the files are not being renamed to the folders.  However, I have to get the pagesize for each pdf file and then move it to the landscape folder or portrait folder depending if height>width. how do I close the inputstream without touching the file and expect the  result?]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2010/02/02/file-renameto-always-fails-on-windows#c2833</link>
		</item>
		<item>
			<title> Sathiya [Visitor] in response to: Java's File.renameTo fails on Windows</title>
			<pubDate>Wed, 31 Oct 2012 07:37:09 +0000</pubDate>
			<dc:creator><span class="user anonymous" rel="bubbletip_comment_2522">Sathiya</span> <span class="bUser-anonymous-tag">[Visitor]</span></dc:creator>
			<guid isPermaLink="false">c2522@https://www.bigsoft.co.uk/</guid>
			<description>thanks a lot &amp;#8230; it really saved the day for me once again thanks:)</description>
			<content:encoded><![CDATA[thanks a lot &#8230; it really saved the day for me once again thanks:)]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2010/02/02/file-renameto-always-fails-on-windows#c2522</link>
		</item>
		<item>
			<title> Selvadurai [Visitor] in response to: Java's File.renameTo fails on Windows</title>
			<pubDate>Thu, 11 Oct 2012 16:58:53 +0000</pubDate>
			<dc:creator><span class="user anonymous" rel="bubbletip_comment_2516">Selvadurai</span> <span class="bUser-anonymous-tag">[Visitor]</span></dc:creator>
			<guid isPermaLink="false">c2516@https://www.bigsoft.co.uk/</guid>
			<description>&lt;p&gt;File o=new File(&quot;d:/old.txt&quot;);&lt;/p&gt;
&lt;pre class=&quot;codeblock&quot;&gt;&lt;code&gt;File n=new File(&quot;d:/new.txt&quot;);
n.delete();
o.renameTo(n);&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;n.delete() : We need to delete the file(new.txt) if exists.&lt;/p&gt;
&lt;p&gt;o.rename(n) : so that the file(old.txt) is renamed as new.txt&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>File o=new File("d:/old.txt");</p>
<pre class="codeblock"><code>File n=new File("d:/new.txt");
n.delete();
o.renameTo(n);</code></pre>
<p>n.delete() : We need to delete the file(new.txt) if exists.</p>
<p>o.rename(n) : so that the file(old.txt) is renamed as new.txt</p>]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2010/02/02/file-renameto-always-fails-on-windows#c2516</link>
		</item>
		<item>
			<title>davidnewcomb [Member] in response to: Java's File.renameTo fails on Windows</title>
			<pubDate>Wed, 06 Jun 2012 06:15:43 +0000</pubDate>
			<dc:creator><a href="https://www.bigsoft.co.uk/?disp=user&amp;user_ID=1" title="Show the user profile" class="login user nowrap" rel="bubbletip_user_1"><span class="identity_link_username">davidnewcomb</span></a> <span class="bUser-member-tag">[Member]</span></dc:creator>
			<guid isPermaLink="false">c2485@https://www.bigsoft.co.uk/</guid>
			<description>Check that you are closing after an exception.
Check that you are not trying to rename a folder while you are touching any of the files contained within it. Under Unix this will be fine but windows is useless and won&amp;#8217;t let you alter parents of filesystem entities.</description>
			<content:encoded><![CDATA[Check that you are closing after an exception.
Check that you are not trying to rename a folder while you are touching any of the files contained within it. Under Unix this will be fine but windows is useless and won&#8217;t let you alter parents of filesystem entities.]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2010/02/02/file-renameto-always-fails-on-windows#c2485</link>
		</item>
		<item>
			<title> SR [Visitor] in response to: Java's File.renameTo fails on Windows</title>
			<pubDate>Thu, 31 May 2012 05:59:26 +0000</pubDate>
			<dc:creator><span class="user anonymous" rel="bubbletip_comment_2484">SR</span> <span class="bUser-anonymous-tag">[Visitor]</span></dc:creator>
			<guid isPermaLink="false">c2484@https://www.bigsoft.co.uk/</guid>
			<description>Hi, I am trying to rename the sub folders in about 10 parent folders in the loop. Meanwhile I am uploading the files in to the sub folders and downloading the files, but closing the files. But rename fails some times for 1 or two sub folders randomly if I continuously doing uploading, renaming and downloading. How to solve this problem?</description>
			<content:encoded><![CDATA[Hi, I am trying to rename the sub folders in about 10 parent folders in the loop. Meanwhile I am uploading the files in to the sub folders and downloading the files, but closing the files. But rename fails some times for 1 or two sub folders randomly if I continuously doing uploading, renaming and downloading. How to solve this problem?]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2010/02/02/file-renameto-always-fails-on-windows#c2484</link>
		</item>
		<item>
			<title> L3x1uTh0r [Visitor] in response to: Java's File.renameTo fails on Windows</title>
			<pubDate>Mon, 23 Apr 2012 15:44:59 +0000</pubDate>
			<dc:creator><span class="user anonymous" rel="bubbletip_comment_2480">L3x1uTh0r</span> <span class="bUser-anonymous-tag">[Visitor]</span></dc:creator>
			<guid isPermaLink="false">c2480@https://www.bigsoft.co.uk/</guid>
			<description>Perfecto!!! ahora entiendo porque no podia hacer el rename.
Thanks a bunch!!</description>
			<content:encoded><![CDATA[Perfecto!!! ahora entiendo porque no podia hacer el rename.
Thanks a bunch!!]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2010/02/02/file-renameto-always-fails-on-windows#c2480</link>
		</item>
		<item>
			<title> Fern [Visitor] in response to: Java's File.renameTo fails on Windows</title>
			<pubDate>Fri, 22 Jul 2011 19:13:30 +0000</pubDate>
			<dc:creator><span class="user anonymous" rel="bubbletip_comment_659">Fern</span> <span class="bUser-anonymous-tag">[Visitor]</span></dc:creator>
			<guid isPermaLink="false">c659@https://www.bigsoft.co.uk/</guid>
			<description>Excellent, because I&amp;#8217;m having this problem right now..   I&amp;#8217;m glad I found this..  woohoo..
Thanks a bunch..</description>
			<content:encoded><![CDATA[Excellent, because I&#8217;m having this problem right now..   I&#8217;m glad I found this..  woohoo..
Thanks a bunch..]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2010/02/02/file-renameto-always-fails-on-windows#c659</link>
		</item>
			</channel>
</rss>
