Get SubFolder names
Options
Folder tab
| Option | Description |
|---|---|
Transform name | Name of this transform as it appears in the pipeline workspace |
Accept foldername from field? | Allows a foldername to be passed as a field. |
Foldername field | The field which contains the folder name. |
Selected directories | The directories from which to get the subfolders. |
Browse | Uses the local file browser to get a path. |
Add | Adds the path defined in the Directory field. |
Delete | Deletes the path |
Edit | Change the path |
Output fields
| Field | Type | Description |
|---|---|---|
| String | Full path of the subfolder |
| String | Base name of the subfolder (last path segment) |
| String | Full path of the subfolder’s parent directory |
| Boolean | Whether the subfolder is hidden |
| Boolean | Whether the subfolder is readable |
| Boolean | Whether the subfolder is writeable |
| Date | Last modified timestamp of the subfolder |
| String | Full URI of the subfolder |
| String | Root URI of the file system |
| Integer | Number of direct children (files and folders) in the subfolder |
Cloud storage (VFS)
This transform works with any file system supported through Apache Hop’s VFS integration, including local file systems, S3, Azure Blob Storage, Google Cloud Storage, Google Drive, Dropbox and others. When working with cloud storage, be aware of the following:
-
The input directory must point to an actual folder, not a scheme root. For example, use
s3://my-bucket/my-folderrather thans3://ors3://my-bucket. -
Some metadata fields (
ishidden,isreadable,iswriteable,lastmodifiedtime,children) may not be available for all cloud storage providers. When a value can’t be determined, the field will benull. For example,lastmodifiedtimemay not be available for virtual folders on S3 or MinIO. -
The transform traverses the full folder tree recursively. On cloud storage with deeply nested or very large folder structures, this may result in a high number of API calls and slow performance.