Skip to content

Conversation

@itsishant
Copy link

Description

Fixes the issue where listFiles API was not returning customMetadata for folders, even though the ImageKit web UI allows users to set custom metadata on folders.

Changes

  • Added customMetadata?: { [key: string]: unknown } field to the Folder interface
  • This matches the File interface which already had this field
  • Folders can now return their custom metadata in listFiles responses

Issue

The listFiles operation correctly returned customMetadata for files but not for folders. This was an oversight in the interface definition.

Testing

The change is a type definition update that allows folders to properly expose their custom metadata in API responses. No breaking changes.

Fixes : #115

Copilot AI review requested due to automatic review settings January 21, 2026 17:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for customMetadata in the Folder interface to fix an inconsistency where the ImageKit API returns custom metadata for folders, but the TypeScript interface didn't reflect this capability.

Changes:

  • Added optional customMetadata field to the Folder interface with the same type signature as the File interface

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Listing folders does not return customMetadata

1 participant