-
Notifications
You must be signed in to change notification settings - Fork 2
FileIn Node
kleer001 edited this page Feb 6, 2025
·
1 revision
A versatile node that reads and parses text files or input strings into lists. Can either read from a file or process input text, automatically parsing formatted string lists like "[item1, item2, item3]" into proper Python lists. If no input is provided, reads from the specified file.
Path to the target file. Defaults to "./input.txt"
Contains the current file content.
Forces reload of the file content.
- Monitors file changes using MD5 hashing
- Automatically reloads when file content changes
- Provides error reporting for file access issues
- Supports force refresh via button
- Uses provided input instead of file content when available
- Parses text in format "[item1, item2, ...]" into list items
- Handles quoted strings, escapes, and empty items
- Falls back to single-item list for invalid formats