Disregarding my last post, I've found the source of the problem. I'm using
a.renameTo(b)
when b doesn't exist. The reason it doesn't exist is because there is a symbolic link so if b is /usr/name/folder/file
, then b really is /mnt/MountTest
because the symlink is to that directory.
So the question is, is there an alternative way to rename a file in Java using a string value? If not, how can this rename procedure be done differently?