dreaMake.dev
S3Flow · Documentation
Deutsch · English
Contents

File nodes: process files

File nodes process each file separately and pass the result to the next node. They do not write to S3 themselves. Add them in the node menu under Modify.

Rename file and gzip compress/decompress change the name of a file. All other file nodes keep the name.

The limit per file is 500 MB (500,000,000 bytes). Text nodes read UTF-8 with or without a BOM. For other encodings, add Change encoding first. Select UTF-8 as its target.

Existing line endings and a missing final line ending remain unchanged unless the selected operation affects them. Text nodes keep an existing UTF-8 BOM. Change encoding removes the BOM of the source. It writes a BOM only with the targets UTF-8 with BOM and UTF-16.

Open the settings in the Inspector. Invalid entries appear beside the field and in Problems. They block Run and Save. The Node help button opens this help page.

Change encoding

Converts the character encoding.

Example: a Windows-1252 file containing Grüße → a UTF-8 file containing Grüße. The text stays the same; the bytes change.

Report: Detect automatically is reliable only for UTF-8 with or without a BOM, and UTF-16 with a BOM. Anything else is uncertain and skips the file; then select a fixed source. If the file cannot be read as the selected source, the report says so. If a character is missing from the target encoding, the report identifies the character and line. Characters are never silently replaced.

Filter lines

Removes matching text lines or keeps only matching lines.

Add rule adds another rule.

Example: Remove matches, Starts with, text #. Before: # Comment, then Value. After: only Value.

Rules check text without its line ending. Spaces in patterns matter. With no matches, Remove matches keeps everything. Keep matches only produces an empty file, possibly with a protected header.

Report: Unreadable UTF-8 skips the file. Invalid regular expressions show as problems and block Run and Save.

Swap decimal separator

Changes complete numeric CSV field values. Text fields are preserved.

Example with a semicolon and thousands removal enabled: Amount;1.234,56 → Amount;1234.56.

The first line stays unchanged when Has header is on or columns are selected by name. CSV commas remain delimiters: with comma as the delimiter, Comma → point leaves the file unchanged. A number that gets a decimal comma is quoted when needed. With Automatic and no delimiter found, numbers anywhere in the line change.

Report: Missing columns, a column name that occurs more than once, an ambiguous CSV delimiter, an unterminated quoted field or unreadable UTF-8 skip the file. Select the column by number for duplicate names. Select a fixed delimiter when detection is uncertain.

Remove empty lines

Removes lines without text.

Include lines containing only spaces or tabs is off by default. Enable it to also remove lines containing only spaces or tabs. Other Unicode whitespace characters are not covered by this option.

Example: A, an empty line, B → A, B. A line containing one space remains with the default setting.

Report: Unreadable UTF-8 skips the file. A completely empty result is a successfully passed file.

Convert line endings

Converts LF, CRLF and CR line endings to one type.

Target: LF (default) or CRLF.

Example: A\r\nB\n → A\nB\n with target LF. Here, \r\n means CRLF and \n means LF. A missing final line ending is not added.

Report: Unreadable UTF-8 skips the file.

Find and replace

Replaces all matches in each line. Multiple pairs run in order on the previous pair's result.

A new node starts with one pair. Find and Replace with are initially empty. At least one pair is required. Add pair adds another pair.

Example in text mode: find old, replace with new: old;old → new;new.

In regex mode, use $1, $2, … for groups. $$ inserts a dollar sign. Invalid patterns and unknown groups show as problems and block Run and Save. Regex does not use automatic DOTALL or MULTILINE; explicit flags are supported. Line endings change only when the search or replacement explicitly affects them.

Report: Unreadable UTF-8 skips the file.

Trim whitespace

Removes spaces and tabs from the edges of each physical text line. Line endings are preserved.

Position: Both (default), Start or End.

Example with Both: A → A. Spaces inside the text remain.

Report: Unreadable UTF-8 skips the file.

Remove first/last N lines

Removes lines from the start and end.

The maximum for both values is 1,000,000,000. Larger numbers are too large.

Example: A, B, C, D with both values set to 1 → B, C. Both values set to 0 leave the file unchanged.

Report: If the file has fewer lines than the sum of both values, an empty file is passed on. The report shows a notice, not a file error. With exactly that many lines, the empty result is normal. Unreadable UTF-8 skips the file.

Remove duplicate lines

Removes repeated lines. The first line with the text stays.

The comparison uses the text without its line ending. Upper and lower case, spaces and all other characters count. Whole file compares every line with all lines before it. Consecutive only removes only immediate repeats. A protected header is kept and is not compared: a later line with the same text also stays.

Example with Whole file: A, B, A → A, B. Example with Consecutive only: A, A, B, A → A, B, A.

Report: Unreadable UTF-8 skips the file.

Insert text

Inserts your text at the start and at the end of the file.

At least one of the two texts is required. The text is inserted exactly as entered. Include a line break when the content must start on its own line. Without it, the start text joins the first line. The same applies to the end text: without a final line ending, it joins the last line. The start text comes after an existing BOM. The option Insert start text only if missing compares the whole start text with the file start. One different character is enough for the text to be inserted.

Example: At start with # Report and a line break. Before: Data. After: # Report, then Data. Without the line break, the result is one line # ReportData.

Report: Unreadable UTF-8 skips the file.

Rename file

Changes the name of each file. The content stays the same.

The folder stays. The extension is the part after the last dot of the name. A name without a dot, or with a dot only at the start, has no extension.

Example: reports/data.csv with Change extension enabled, Prefix 2026-, Suffix before extension -old and New extension set to txt → reports/2026-data-old.txt.

Prefix, suffix and extension must not contain path separators (/, \) or control characters. Such entries appear as problems and block Run and Save. When two files receive the same name, planning stops and names the target path.

Report: A result without a valid file name, or a name that exceeds 1,024 bytes (S3 limit) together with the folder, skips the file.

Change CSV delimiter

Re-writes the CSV with another delimiter. Fields are quoted when needed.

Automatic checks a sample at the start of the file (up to 64 KiB). It looks for one delimiter that splits the non-empty records in the sample into the same number of fields (at least two). If detection is ambiguous, select a fixed delimiter.

Each record keeps its own line ending. Blank lines pass through unchanged.

Example: A;B;C with target Comma , → A,B,C. A field containing the new delimiter is quoted: A;"B,C" → A,"B,C".

Report: An ambiguous delimiter, unreadable UTF-8 or a CSV read error, for example an unterminated quoted field, skip the file.

CSV columns

Keeps only the chosen columns, in the chosen order.

With Name, the first record is the header. The header stays in the output, and the columns are found by name. The output uses the same delimiter as the input. Blank lines pass through unchanged.

Example: With Select by set to Name (Has header is enabled automatically): header Name;City;Amount, Output columns Name, Amount → header Name;Amount and the matching fields of every record.

Report: A column missing in any record skips the file. With Automatic, an ambiguous delimiter skips the file here too; then select a fixed delimiter as with Change CSV delimiter. If a selected name occurs more than once in the header, the file is skipped; select that column by number instead. Unreadable UTF-8 or a CSV read error skip the file.

gzip compress/decompress

Packs or unpacks each file with gzip. The node works on bytes; the file does not need to be text.

Mode: Compress (default) or Decompress.

Compress appends .gz to the name: data.csv → data.csv.gz. Decompress removes one .gz at the end of the name: data.csv.gz → data.csv. A name without .gz stays as it is; the content is still unpacked.

After Decompress, the following nodes read the unpacked file. If it is not UTF-8, add Change encoding after it.

Report: Files that are not gzip files are skipped; then use Compress, or unpack only gzip files. A damaged or incomplete gzip file skips the file. A decompressed file above 500 MB skips the file.

Report and errors

File results shows the node, file, result, reason and line where available. The Line column stays empty when the position is unknown. For CSV, the line names the physical start line of the record. Activate an entry to select the node and open the Inspector.

Rename file and gzip compress/decompress change the name during the run. The report keeps showing the original name of each file. When a renamed file fails, the reason also shows its current name.

File errors skip only the affected file. There is no partial output or automatic retry. Common reasons are a file larger than 500 MB, insufficient disk space for temporary output or a specific read error. Free disk space and run again if space is insufficient.

The report counts files passed on, filtered out and skipped. These fixed nodes do not filter out whole files. Empty output also counts as passed on. Skipped files produce a warning; the node can still show Succeeded. If all files are skipped, the output is empty. Fatal planning, S3 and runtime errors can still stop the run.

After cancellation, the report covers processed files only. Unprocessed files do not count as file errors. Failures to remove temporary files remain visible.

Choose a suitable node instead of Python

For conversion to UTF-8 only, use Change encoding. For LF or CRLF, use Convert line endings. For decimal commas, use Swap decimal separator. These operations do not require custom Python code.