code: public boolean rename(final String from, final String to)
     {
        final File src = new File(baseDir, from);
        final File dest = new File(baseDir, to);
  
        try
        {
           SecurityHelper.doPrivilegedIOExceptionAction(new PrivilegedExceptionAction<Void>()
           {
              public Void run() throws IOException
              {
                 DirectoryHelper.renameFile(src, dest);
  
                 return null;
              }
           });
        }
        catch (IOException e)
        {
           return false;
        }
  
        return true;
     }
docs: {@inheritDoc}