From f1b3e8abf220ed58a5a82035c6749606cbbe0da9 Mon Sep 17 00:00:00 2001 From: steve Date: Tue, 6 Jun 2017 12:59:48 -0500 Subject: [PATCH] folder handling ... --- src/utils/agents/actor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/agents/actor.py b/src/utils/agents/actor.py index f3d89ec..bcec820 100644 --- a/src/utils/agents/actor.py +++ b/src/utils/agents/actor.py @@ -13,7 +13,7 @@ import json from threading import Thread import os -import zipfile +import shutil import subprocess from monitor import ProcessCounter from utils.transport import QueueListener, QueueWriter, QueueReader @@ -82,7 +82,9 @@ class Folders(Actor): """ This function consists in deleting files from a given folder """ - pass + shutil.rmtree(item['label']) + os.mkdir(item['label']) + def isvalid(self,item): return os.path.exists(item['label']) def process(self,item):