File functions
getFileContent#
The getFileContent function takes the fileId as input and returns the content of the file.
Syntax:
new NameSpace("file").getFileContent(
NumberfileId);
Returns: String
Example:
fileCont = new NameSpace("file").getFileContent(1);log fileCont;putFileToRemoteFileServer#
The putFileToRemoteFileServer function takes the given string as input and puts the file in remote server.
Syntax:
new NameSpace("file").putFileToRemoteFileServer(
StringknownHost,Stringhost,StringuserName,Stringpassword,StringremoteDirectoryPath,StringStringContent);
Returns: Void
getFileInfo#
The getFileInfo function takes the fileId as input and returns the file information.
Syntax:
new NameSpace("file").getFileInfo(
NumberfileId);
Returns: String
Example:
fileId = "<some fileId>";fileCont = new NameSpace("file").getFileInfo(fileId);log fileCont;getFileFromRemoteFileServer#
The getFileFromRemoteFileServer function takes the given string as input and gets the file in remote server.
Syntax:
new NameSpace("file").getFileFromRemoteFileServer(
StringknownHost,Stringhost,StringuserName,Stringpassword,StringremoteDirectoryPath,StringStringContent);
Returns: Void