Proposal: Add Support for Excluding Files and Folders During Package and Bundle Creation #103

Closed
opened 2026-02-16 00:19:49 -05:00 by yindo · 1 comment
Owner

Originally created by @QuantumGhost on GitHub (Apr 30, 2025).

Currently, the dify plugin package FOLDER command packages all files and folders within the specified FOLDER directory into the final output file. This approach might unintentionally include unnecessary files, leading to a bloated package. Moreover, there's a risk of accidentally packaging sensitive files, which could result in information leakage.

To address these issues, I propose introducing support for an ignore file (e.g., .difyignore). This file would allow users and developers to specify files and directories to exclude during the packaging process, resulting in smaller, more streamlined packages and enhanced security by preventing sensitive files from being included.

Additionally, this proposal could be extended to the dify bundle package functionality to ensure consistency and broader applicability.

Originally created by @QuantumGhost on GitHub (Apr 30, 2025). Currently, the `dify plugin package FOLDER` command packages all files and folders within the specified `FOLDER` directory into the final output file. This approach might unintentionally include unnecessary files, leading to a bloated package. Moreover, there's a risk of accidentally packaging sensitive files, which could result in information leakage. To address these issues, I propose introducing support for an ignore file (e.g., `.difyignore`). This file would allow users and developers to specify files and directories to exclude during the packaging process, resulting in smaller, more streamlined packages and enhanced security by preventing sensitive files from being included. Additionally, this proposal could be extended to the `dify bundle package` functionality to ensure consistency and broader applicability.
yindo closed this issue 2026-02-16 00:19:50 -05:00
Author
Owner

@QuantumGhost commented on GitHub (Apr 30, 2025):

It appears that dify-plugin-daemon already supports excluding files when creating packages or bundles. However, after reviewing the documentation on docs.dify.ai, I couldn't find any reference to this feature. Perhaps we should consider updating the documentation to include this information.

@QuantumGhost commented on GitHub (Apr 30, 2025): It appears that `dify-plugin-daemon` [already supports](https://github.com/langgenius/dify-plugin-daemon/blob/280caa/pkg/plugin_packager/decoder/fs.go#L63-L82) excluding files when creating packages or bundles. However, after reviewing the documentation on docs.dify.ai, I couldn't find any reference to this feature. Perhaps we should consider updating the documentation to include this information.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#103