File/Folder Operations

This function block allows you to perform various operations on files and folders. Users can select a specific operation to execute, ranging from listing items in a directory to reading or writing files.

πŸ“₯ Inputs

Folder Path A string indicating the path of the folder or file to operate on, depending on the selected operation.

πŸ“€ Outputs

Strings The output type may vary based on the selected operation, such as a list of filenames, folder names, or file content.

πŸ•ΉοΈ Controls

Method Selection A dropdown menu that allows you to choose from various file and folder operations like listing files, reading content, or manipulating files.

🎨 Features

Multiple Operations Support This block supports a wide range of file and folder operations, making it versatile for file management tasks.

Dynamic Input/Output Sockets The input and output sockets dynamically change based on the selected operation to provide relevant data.

πŸ“ Usage Instructions

  1. Select Operation: Choose the desired operation from the Method Selection dropdown.

  2. Provide Path: Enter the folder path or file path needed for the selected operation in the input socket.

  3. Evaluate: Execute the block to perform the selected operation; the results will be returned through the output socket.

πŸ“Š Evaluation

The block evaluates the inputs and performs the selected file or folder operation, returning relevant results in the output socket.

πŸ’‘ Tips and Tricks

Listing Files and Folders

To list files in a directory, select the List Folder Contents operation and provide the path to the directory.

Reading and Writing Files

For reading files, use the Read File operation. To write content to a file, choose the Save File operation and provide the desired content.

Checking File Existence

Use the Check Existence operation to determine if a specific file or directory exists.

Deleting Files or Folders

You can delete files or folders by selecting the appropriate Delete File or Delete Directory operations.

πŸ› οΈ Troubleshooting

File/Folder Not Found Error

Ensure the path you provided exists on your system. If you're unsure, check for typos or re-check your file explorer.

Access Denied Errors

Make sure you have the appropriate permissions to access or modify the files and folders you are attempting to work with.

Last updated