Skip to content

← file_system package

SkipIfExists

Skip this file path if the checked path already exists.

This node can be used in offline processing when iterating over paths, e.g., with a FileIterator node. The node can accept and modify the file path that would be wired into an import node, based on whether a second path (the 'checked path') already exists. In that context, the checked path would often be the output file path that the pipeline ultimately writes to (e.g., what is wired into the final export node). Version 1.0.0

Ports/Properties

path

File path.

verbose name
Path
default value
None
port type
DataPort
value type
str (can be None)
data direction
INOUT

checked_path

Path to check.

verbose name
Checked Path
default value
None
port type
DataPort
value type
str (can be None)
data direction
IN

enable_check

Enable checking and skipping (default). Can be disabled (i.e., via a ParameterPort), so that files that exist are not skipped.

verbose name
Enable Check
default value
True
port type
BoolPort
value type
bool (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

verbose name
Set Breakpoint (Debug Only)
default value
False
port type
BoolPort
value type
bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

verbose name
Metadata
default value
{}
port type
DictPort
value type
dict (can be None)