Global.getFile (arg)
private method for creating an instance of java.io.File based on various argument types

  • Parameter a:
    String or an instance of helma.File or java.io.File
Sourcecode in /home/hannes/helma/modules/helma/Ssh.js:
82:   var getFile = function(arg) {
83:           if (arg instanceof helma.File) {
84:               return new java.io.File(arg.getAbsolutePath());
85:           } else if (arg instanceof java.io.File) {
86:               return arg;
87:           } else if (arg.constructor == String) {
88:               return new java.io.File(arg);
89:           }
90:           return null;
91:      }