cancel
Showing results for 
Search instead for 
Did you mean: 

File Operations

skodali
New Contributor III

I’m trying to copy files from one folder to another folder in a SFTP server. I have tried using File Operation. But I’m not able to copy all the files present in the folder. Can anyone suggest how should I approach to copy those files.

8 REPLIES 8

tstack
Former Employee

You will probably want to use a DirectoryBrowser to get the list of files in the directory and then feed that into the FileOperation snap, like so:

image

The FileOperation snap can then be configured to get the Source from the incoming document (probably $Path in this case).

image

skodali
New Contributor III

@tstack I have tried by feeding the files from directory browser to the file operation but its throwing an error “Target already exists”. There are no files in the PurchaseOrders folder. Capture2

aleung
Contributor III

Try adding a slash “/” at the end of your Target path.

skodali
New Contributor III

@aleung Still its throwing the same error.