waddra / tvrename

Automatically exported from code.google.com/p/tvrename
Other
0 stars 0 forks source link

TVRename cannot delete source files set as read-only when performing a Move operation #129

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download a TV episode using uTorrent 3.3.1 with default settings
2. Upon download completion, check the file was silently set by uTorrent as 
Read-Only
3. Scan the directory the show was downloaded to and attempt to move it to your 
TV Shows directory with TVRename

What is the expected output? What do you see instead?

One would have expected the source file to be deleted, however it isn't as it 
turns out it was silently set by uTorrent as read-only.

What version of the product are you using? On what operating system?

TVRename 2.2.4, Windows 7 Ultimate SP1 x64.

Please provide any additional information below.

When attempting to move files which have been downloaded by uTorrent, the file 
will be copied to the destination however the source file will not be deleted. 
An exception will occur in mscorlib.dll resulting in TVRename displaying an 
anomalous "Access to the path is denied" error.

The cause of this error is that, by default, uTorrent sets all files it 
downloads to be "read-only" (setting bt.read_only_on_complete in Preferences -> 
Advanced).

While this is clearly not a problem with TVRename, TVRename could be perhaps 
enhanced to detect when a file is read-only and then prompt asking whether or 
not the user would really like to perform the action. Alternatively, TVRename 
could silently overwrite the permissions of the file and delete it without 
notice.

Original issue reported on code.google.com by lord.mi...@gmail.com on 22 Mar 2014 at 7:16