I have a scenario where I want to write xml content to a file in SFTP. I want to set property to check the file size of the file that is being written. If the property is empty it means the file is not written and I would like to reprocess the file write operation. Is there a way I can set the file-size property after I write it using VFS? Below is my code to write to file.
<call>
<endpoint>
<address uri="vfs:sftp://{username}:{password}@{host/path}">
<timeout>
<duration>60000</duration>
</timeout>
<suspendOnFailure>
<initialDuration>1000</initialDuration>
<progressionFactor>2</progressionFactor>
<maximumDuration>60000</maximumDuration>
</suspendOnFailure>
<markForSuspension>
<retriesBeforeSuspension>3</retriesBeforeSuspension>
<retryDelay>1</retryDelay>
</markForSuspension>
</address>
</endpoint>
</call>