# File System

The *File System Action* task performs actions on a file or a folder, as it is configured. For example, this task can copy a file, move a file to another folder, or delete all files in a folder.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fbdt7pL7RsAcEwvhoJ5zx%2F01-File-System-Action-Object.PNG?alt=media&#x26;token=937e4c4d-4de9-485b-91f7-b895bed04561" alt=""><figcaption></figcaption></figure>

To use a *File System Action* task, drag-and-drop the *File System Action* object onto the workflow designer. Configure the object by right-clicking on the object’s header and selecting *Properties* from the context menu.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FgzwM6nuqEvEmiXGAhaN5%2F02-File-System-Properties.PNG?alt=media\&token=c0472bea-4f14-4ce0-b737-d6253bac8b19)

A *File System Action Properties* window will open, as shown below. Here, we will configure the properties of the *File System Action* task.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FhaTRpXCURDHFnF7ZDOsX%2F03-File-System-Action-Properties.PNG?alt=media\&token=d61e0590-518d-4825-9d3b-cbd9ad43d175)

Select an action from the *Action* dropdown list. The following options are available:

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F7x2Z8EGrJMgKB1ynAvEO%2F04-File-System-Options.PNG?alt=media\&token=fa3bda91-4dbd-451e-9fc7-f5615d4113b1)

* *File Copy*: Copies a file from a source folder into a destination folder.
* *File Move*: Moves a file from a source folder into a destination folder.
* *File Rename*: Renames a file.
* *File Delete*: Deletes a file.
* *Directory Move*: Moves all files in the folder into a new folder
* *Directory Delete*: Deletes the folder along with any files or folders it contains
* *Directory Content Delete*: Deletes all files from the folder, leaving the folder empty (the folder itself is not deleted).

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FdwMyJDeSLH1e24WOw69u%2F05-File-System-Properties-Options.png?alt=media\&token=58a3d85a-841e-4da2-b7ed-b6b368f2a364)

* *Source File (Directory) Path*: Specifies the path to the source file or source directory.
* *Destination Directory Path*: Specifies the path to the destination file or destination folder.
* *Raise Error if no Source File Found*: When checked, returns an error message if the source directory is empty.
* *Overwrite Destination*: When checked, overwrites data in the destination file or overwrites files in a destination folder.

This concludes the configuration and properties of the *File System* workflow task in Astera.
