E
ebresie
I've been attempting to rename a directory on Solaris 8 and continue to
have problems.
I read other threads that mention it is not possible to do when moving
between partitions on Solaris, but I am renaming to the same
paritition.
I am basically attempting the following:
File oldName = new File("/opt/OldDirectoryName");
File newName = new File("/opt/NewDirectoryName");
if ( oldName.renameTo( newName ) )
// Successfully renamed
else
// Failed to rename
For some reason I seem to continually be unable to do this.
Any ideas?
Eric
have problems.
I read other threads that mention it is not possible to do when moving
between partitions on Solaris, but I am renaming to the same
paritition.
I am basically attempting the following:
File oldName = new File("/opt/OldDirectoryName");
File newName = new File("/opt/NewDirectoryName");
if ( oldName.renameTo( newName ) )
// Successfully renamed
else
// Failed to rename
For some reason I seem to continually be unable to do this.
Any ideas?
Eric