FilePlugin

This plugin implements functions used for file handling.

The FilePlugin main actions, conditions, rules and API

Table of contents

  1. Terms
    1. Work with single file
    2. Work with files list
    3. Work with directory
    4. Work with archive
    5. Download and upload
  2. Installation and setting

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 Setup

Install the NuGet package:

How to install the nuget package in Visual studio for Windows

How to install the nuget package in Visual studio for Mac

How to install the nuget package in Rider

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);
Top