How to display file size in log file after file is uploaded to the partner ftpserver, using a script.
book
Article ID: KB0082678
calendar_today
Updated On:
Products
Versions
TIBCO BusinessConnect
6.X.X
Description
While uploading the file using script in ftpserver, the user is unable to see size of the log file. Because of this, the user is unable to discover the time for uploading the file.
Issue/Introduction
While uploading the file using script in ftpserver customer is unable to see size of the log file ,Due to this customer is unable to understand the time for uploading the file.
Environment
All platforms
Resolution
You can use the function below to obtain the size of the file in bytes from a script using this syntax:
getSize() -> "Method in interface com.tibco.ax.fw.runtime.transport.sshftp.FileAttr"(to obtain the size of the file in bytes)
Syntax:- <<<<<< var replies = reply.getRemoteFileList(); for ( i=0;i<replies.size();i++) {
var fileAttr = replies.get(i); var fileSize = fileAttr.getSize(); } >>>>>>>