Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

File Plugin

This plugin implements functions used for file handling.

The FilePlugin main actions, conditions, rules and API.

Terms

Work with Single File

Using the plugin to handle a file, you can perform the following operations:

  1. Read
  2. Write
  3. Delete
  4. Move
  5. Copy
  6. Rename

Work with List of Files

Using the plugin to handle a list of files, you can perform the following operations:

  1. Read
  2. Delete
  3. Move
  4. Copy
  5. Rename

Work with Directory

Using the plugin to handle directories, you can perform the following operations:

  1. Create
  2. Delete
  3. Move
  4. Copy
  5. Rename
  6. Get List of Files
  7. Get List of Directories

Work with Archive

Using the plugin to handle an archive, you can perform the following operations:

  1. Compress Directory
  2. Compress Files
  3. Uncompress Archive

Download and Upload

Using the plugin for downloading and uploading files, you can perform the following operations:

  1. Download File
  2. Upload File

Using the plugin for downloading and uploading directories, you can perform the following operations:

  1. Download Directory
  2. Upload Directory

Installation and settings

Install the NuGet package: WorkflowEngine.NETCore-FilesPlugin.

Add the following namespaces to the section of using statements:

using OptimaJet.Workflow.Plugins;

Create a plugin object:

var filePlugin = new FilePlugin();

Connect the plugin to WorkflowRuntime:

var runtime = new WorkflowRuntime();
...
runtime.WithPlugin(filePlugin);