Skip to main content

Connecting File

info

Before processing files in SourceFlow, you need to put the file in to the corresponding docker.

scp C:\Users\you\Desktop\myfile.txt username@server IP:/home/username/  
//copy the file from local to server
docker cp /root/config.json <docker name or ID>:/app/config.json
//copy the file from server to docker
general docker commands
CommandDescription
docker psLists all running Docker containers.
docker ps | grep [container]Filters running containers based on the specified docker information.
docker exec -it [container] /bin/shStarts a shell session inside a running container using /bin/sh.
mkdir [directory]Creates a new directory with the specified name inside a container.

Connecting a Text File

  1. In SourceFlow, drag an inject node.
  2. Drag a read file node, and then double-click it.
  3. Enter the file path and output configuration.
  1. Click Done, and then connect a debug node at the end.
  2. Click Deploy at the upper-right corner, and then click inject node to trigger the flow.

Connecting an Excel File

  1. In SourceFlow, drag an inject node.
  2. Drag a read file node, and then double-click it.
  3. Enter the file path and output configuration.
  1. Click Done, and then connect a book, a sheet and a sheet to json node by order to convert table data to json.
  1. Click Deploy at the upper-right corner, and then click inject node to trigger the flow.