mittwald icon

mittwald

Interact with mittwald mStudio API

Actions100

Overview

This node operation, Project File System Get Directories, allows users to list directories and files within a specified project’s file system. It is useful for scenarios where you need to explore or retrieve directory structures programmatically, such as automating file management tasks, generating file inventories, or integrating with other systems that require knowledge of project file layouts.

For example, you might use this node to:

  • Retrieve all subdirectories under a specific folder in a project.
  • Search for files matching a certain pattern (using glob expressions) within a project directory.
  • Limit the depth of directory traversal to avoid overly large results.
  • Filter results by type (files or directories), visibility (hidden or not), or executability.

Properties

Name Meaning
Project Id ID of the Project to list the directories for.
Directory The directory path to start listing subdirectories from.
Name Search filter for specific filenames only; supports glob expressions for pattern matching.
Max Depth The nesting depth for recursively listing directory contents; 0 means no recursion.
Type Restrict results to items of type "file" or "directory". Can specify multiple types.
Executable Boolean flag to constrain search results to executable files only if true.
Hidden Boolean flag to include hidden files (those starting with a dot) in the search results if true.

Output

The output JSON contains an array of directory entries matching the query parameters. Each entry typically includes metadata about the file or directory such as its name, path, type, and possibly attributes like executability or hidden status.

If binary data were involved (e.g., file contents), it would be indicated here, but this operation focuses on directory listings and metadata only.

Dependencies

  • Requires an API key credential to authenticate against the mittwald mStudio API.
  • The node uses the mittwald mStudio API base URL: https://api.mittwald.de.
  • No additional external dependencies are required beyond the configured API authentication.

Troubleshooting

  • Invalid Project Id: If the provided project ID does not exist or is incorrect, the API will likely return an error indicating the project was not found. Verify the project ID before running.
  • Permission Denied: Insufficient permissions or invalid API credentials can cause authorization errors. Ensure the API key has access rights to the project.
  • Empty Results: If no directories or files match the criteria (e.g., due to restrictive filters like name patterns or max depth), the output will be empty. Adjust filters accordingly.
  • Incorrect Directory Path: Specifying a non-existent directory path may result in errors or empty results. Confirm the directory path exists within the project.

Links and References

Discussion