Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > File/Directory → Count Element In Directory

AI-generated

Summary

Counts elements within a specified Infomaniak Kdrive directory.

Inputs

  • authentication — Authentication method to use for the Infomaniak API call. Defaults to OAuth2 if not specified. Select 'API Key' to use static API key authentication instead.
  • path_drive_id (required) — Unique identifier of the Infomaniak Kdrive. Must be provided as a numeric value; default is 0 when not set.
  • path_file_id (required) — Identifier of the target directory/file within the drive. Must be provided as a numeric value; default is 0 when not set.
  • queryParameters — Optional additional query parameters to append to the API request. Supports a 'depth' parameter with values 'folder' (count only immediate children) or 'unlimited' (recursive count). Default is an empty object.
  • returnFullResponse — Boolean flag indicating whether the full API response should be returned as n8n items. When enabled, the raw response body is passed through; otherwise, only the structured count result is returned. Defaults to false.

Output shape

The operation does not declare a specific return shape in the provided source or properties. Use the returnFullResponse parameter to control whether the complete API payload is emitted as n8n items or if only the count result is passed through.

Both path_drive_id and path_file_id are marked as required for this operation. The queryParameters collection allows optional depth control via query_depth (folder vs unlimited). All parameter defaults and option values are as declared in the node's UI properties.

Links

Discussion