Strange Error #2038: File I/O Error
Hi
I'm making a simple file renamer, for a bunch of mp3s in a folder.
The code in question is...
var _mySourceAudio:File = File.userDirectory.resolvePath( _sourceMinusExt + _extension );
var pathToNewFile:String = File.applicationDirectory.resolvePath (_location + _extension).nativePath;
var _myDestinationAudio:File = new File (pathToNewFile);
_mySourceAudio.moveTo(_myDestinationAudio, true);
if (_mySourceAudio.exists) trace ('yahoo');// always traces yahoo
Certain files in this folder refuse to change their name (there are no naming conflicts) and throw the 2038 error. Other files are renamed fine when I throw them at the function.
The above code always traces out that the file exists, so the path I'm injecting into it is fine
If I copy the misbehaving files to another folder, and do the edit, they rename fine. Copy this newly renamed file back over the old one in the orignal folder, and back to square one again.
I've spent most of the day debugging this - I'm just wondering if there is something less code related about files that I should be aware of that can cause this?
Cheers guys.
