renameTo won't move file
807589Feb 15 2007 — edited Aug 7 2008Hello,
I am trying to move a file. in the root dir it works, but when im working in sub dir it renameTo returns me false. i tried everything including checking the security and it has no problems. here is the code:
File newDir = new File(dir,artist);
File dest = new File(newDir,file.getName());
System.out.println(file.renameTo(dest));
thank you!