Skip to content

Commit

Permalink
Use FileObject directly
Browse files Browse the repository at this point in the history
  • Loading branch information
liamhuber committed Jan 18, 2024
1 parent 6309516 commit 8edc5a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyiron_workflow/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
NotData,
)
from pyiron_workflow.draw import Node as GraphvizNode
from pyiron_workflow.snippets.files import DirectoryObject
from pyiron_workflow.snippets.files import FileObject, DirectoryObject
from pyiron_workflow.has_to_dict import HasToDict
from pyiron_workflow.io import Signals
from pyiron_workflow.topology import (
Expand Down Expand Up @@ -274,7 +274,7 @@ def __post__(
save_exists = self.working_directory.file_exists(self._STORAGE_FILE_NAME)

if save_exists and overwrite_save:
self.working_directory.remove_file(self._STORAGE_FILE_NAME)
FileObject(self._STORAGE_FILE_NAME, self.working_directory).delete()

if self.working_directory.is_empty():
self.working_directory.delete()
Expand Down

0 comments on commit 8edc5a0

Please sign in to comment.