Global.helma.File.renameTo (toFile)
Sourcecode in /home/hannes/helma/modules/helma/File.js:
290:   this.renameTo = function(toFile) {
291:         if (toFile == null) {
292:            setError(new IllegalArgumentException("Uninitialized target File object"));
293:            return false;
294:         }
295:         if (self.isOpened()) {
296:            setError(new IllegalStateException("An openened file cannot be renamed"));
297:            return false;
298:         }
299:        if (toFile.isOpened()) {
300:           setError(new IllegalStateException("You cannot rename to an openened file"));
301:           return false;
302:        }
303:        return file.renameTo(new java.io.File(toFile.getAbsolutePath()));
304:     }