Ask AI
Skip to main content

Get files from folder

Function: Get files from folder

This action allows you to retrieve a list of all files contained within a specified folder. It's useful for tasks like processing multiple documents, displaying images from a directory, or listing reports for review.

Input

  • Folder: The specific folder from which you want to retrieve the files. This is a required input.

Output

  • Files: A list of all the files found within the specified folder. Each item in this list represents a file and contains details like its name, type, and content.
  • The status: A text indicating whether the operation was successful or if an error occurred during the process.

Execution Flow

Real-Life Examples

Example 1: Listing Project Documents Imagine you have a project management application, and you want to display all design documents related to a specific project.

  • Inputs:
    • Folder: ProjectX/Design_Documents
  • Result: The action successfully retrieves a list of all files (e.g., Blueprint_V1.pdf, Mockup_Final.png, Requirements.docx) from the Design_Documents folder. The Files output will contain these documents, and The status will be SUCCESS.

Example 2: Populating an Image Gallery You are building an application for an event, and you want to dynamically load all photos from a dedicated event photos folder into an image gallery.

  • Inputs:
    • Folder: Event_Photos/Summer_Gala_2023
  • Result: The action scans the Summer_Gala_2023 folder and provides a list of all image files (e.g., IMG_001.jpg, IMG_002.png, Group_Shot.jpeg). This list is then used to populate your application's image gallery, and The status will be SUCCESS.

Example 3: Archiving Monthly Reports Your business application generates monthly sales reports and stores them in a specific archive folder. You need to periodically retrieve these reports for further analysis.

  • Inputs:
    • Folder: Reports/Sales/2023_Archive
  • Result: The action accesses the 2023_Archive folder and returns a list of all sales report files (e.g., Sales_Jan_2023.xlsx, Sales_Feb_2023.xlsx, Sales_Mar_2023.xlsx). This list can then be used to download or process the reports, and The status will be SUCCESS.