Neuraxle
Neuraxle copied to clipboard
Bug: Add a flush cache folder or rmtree in ExecutionContext
class ExecutionContext:
def mkdir(self):
"""
Creates the directory to save the last parent step.
:return:
"""
path = self.get_path()
if not os.path.exists(path):
os.makedirs(path)
def rmtree(self):
#TODO: shutil.rmtree ??
- Perhaps use this as well in the ForceHandleMixin or something, or in steps that create a temporary context from any unspecified folder when they end their processing.
- Could make use of a random string for the tmp cache folder used in these cases if we are to delete the folder after.
- Thinking about it, the AutoML/HPRepos' contexts create a
cachingfolder instead of cache folder. Might need to merge these? or rename better.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 180 days. Thank you for your contributions.