forked from LeenkxTeam/LNXSDK
17 lines
468 B
Python
17 lines
468 B
Python
from lnx.logicnode.lnx_nodes import *
|
|
|
|
|
|
class KromDeleteFileNode(LnxLogicTreeNode):
|
|
"""Deletes the file at the given path."""
|
|
bl_idname = 'LNKromDeleteFileNode'
|
|
bl_label = 'Delete File'
|
|
lnx_category = 'Krom Runtime'
|
|
lnx_section = 'file'
|
|
lnx_version = 1
|
|
|
|
def lnx_init(self, context):
|
|
self.add_input('LnxNodeSocketAction', 'In')
|
|
self.add_input('LnxStringSocket', 'Path')
|
|
|
|
self.add_output('LnxNodeSocketAction', 'Out')
|