Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently manage output directories by selectively removing unnecessary files to optimize storage space and workflow organization.
The VHS_PruneOutputs
node is designed to help you manage and clean up your output directories by removing unnecessary files. This node is particularly useful when working with large video projects or batch processing tasks, where intermediate and utility files can accumulate and consume significant storage space. By using this node, you can selectively prune files based on specified options, ensuring that only the essential outputs are retained. This helps in maintaining an organized workspace and optimizing storage usage, making your workflow more efficient and manageable.
The filenames
parameter expects a tuple containing file paths that need to be evaluated for pruning. This parameter is crucial as it determines which files are subject to deletion based on the selected options. The first element in the tuple is typically the main output file, while the subsequent elements are intermediate or utility files. Ensure that the file paths provided are accurate and relevant to the current project to avoid accidental deletion of important files.
The options
parameter allows you to specify the scope of the pruning operation. It accepts a list of options: ["Intermediate", "Intermediate and Utility"]
. Selecting Intermediate
will prune only the intermediate files, while Intermediate and Utility
will prune both intermediate and utility files. This parameter helps you control the extent of the cleanup operation, allowing for more granular management of your output files.
This node does not produce any direct output parameters. Instead, its primary function is to perform file deletion based on the input parameters provided. The absence of output parameters means that the node's success is determined by the successful execution of the pruning operation without errors.
filenames
parameter accurately lists all the files you want to evaluate for pruning to avoid accidental deletion of important files.options
parameter to control the extent of the pruning operation, selecting the appropriate level based on your current project needs.<file_path>
filenames
parameter does not belong to the designated output directories.filenames
parameter are within the valid output directories, typically output
or temp
.<=
3 and len(filenames[1]) >= 2filenames
parameter does not meet the expected range.filenames
parameter includes at least two and no more than three files for the pruning operation.<file_path>
filenames
parameter does not exist.filenames
parameter to ensure they are correct and that the files exist in the specified locations.© Copyright 2024 RunComfy. All Rights Reserved.