Global.helma.Ftp.putFile (localFile, remoteFile)
Sourcecode in /home/hannes/helma/modules/helma/Ftp.js:
246:   this.putFile = function(localFile, remoteFile) {
247:         try {
248:            if (localFile instanceof File) {
249:               var f = localFile;
250:            } else if (typeof localFile == "string") {
251:               if (localDir == null)
252:                  var f = new File(localFile);
253:               else
254:                  var f = new File(localDir, localFile);
255:           }
256:           var stream = new BufferedInputStream(
257:              new FileInputStream(f.getPath())
258:           );
259:           if (!remoteFile) {
260:              remoteFile = f.getName();
261:           }
262:           var result = ftpclient.storeFile(remoteFile, stream);
263:           stream.close();
264:           debug("putFile", remoteFile);
265:           return result;
266:        } catch(x) {
267:           error("putFile", x);
268:           setStatus(PUT);
269:        }
270:        return false;
271:     }