Back to bricks list
Introduction
Technical Documentation
Tasks
Create folder from files
Version

Create folder from files

TASK
Typing name :  TASK.gws_core.CreateFolderFromFile Brick :  gws_core

Create a folder from a list of files or folders.

Create a folder from a list of files or folders. Provide a list of files or folders as input and the task will create a folder containing the files or folders.

The input file and folder are copied to the new folder.

Configuration:

List of filenames to use for the files or folders in the input list. If not provided, the original filenames will be used. The filenames must be provided in the same order as the input list.

Ex: The second filename overide the name of the second input file or folder.

Input

File or folder

Output

Folder

Configuration

folder_name

Optional

Name of the folder to create

Type : string

filenames

Optional

Type : ListMaximum occurrences number : -1

filename

Optional

Overide the file or folder name at this index

Type : string