Ballerina API Documentation

Connectors of ballerina.net.ftp package

connector ClientConnector ()

Parameters:

Parameter NameData TypeDescription

Actions:

action copy()

Copies a file from a given location to another

Parameters:

Parameter NameData TypeDescription
destinationfiles:FileLocation where the File/Directory should be pasted

action createFile()

Create a file or folder

Parameters:

Parameter NameData TypeDescription
isDirbooleanSpecify whether it is a file or a folder

action delete()

Deletes a file from a given location

Parameters:

Parameter NameData TypeDescription

action exists()

Checks the existence of a file

Parameters:

Parameter NameData TypeDescription

Return Parameters:

Return VariableData TypeDescription
booleanThe availability of the file

action move()

Moves a file from a given location to another

Parameters:

Parameter NameData TypeDescription
destinationfiles:FileLocation where the File/Directory should be moved to

action read()

Retrieves blob value of a file

Parameters:

Parameter NameData TypeDescription

Return Parameters:

Return VariableData TypeDescription
blobdata: The blob containing files read

action write()

Writes a file using the given blob

Parameters:

Parameter NameData TypeDescription
filefiles:FilePath of the file


Annotations of ballerina.net.ftp package

annotation configuration

Attributes:

Attribute NameData TypeDescription
dirURIstring
fileNamePatternstring
pollingIntervalstring
cronExpressionstring
ackTimeOutstring
perPollFileCountstring
fileSortAttributestring
fileSortAscendingstring
actionAfterProcessstring
actionAfterFailurestring
moveAfterProcessstring
moveAfterFailurestring
moveTimestampFormatstring
createMoveDirstring
parallelstring
threadPoolSizestring
sftpIdentitiesstring
sftpIdentityPassPhrasestring
sftpUserDirIsRootstring


Menu

  • Connectors
    • ClientConnector ()
      • copy(files:File destination)
      • createFile(boolean isDir)
      • delete()
      • exists()
      • move(files:File destination)
      • read()
      • write(files:File file)
  • Annotations
    • configuration

Copyright 2017 Ballerina API Documentation