[run文档]https://github.com/binux/pyspider/blob/master/pyspider/run.py
import os
import sys
import six
import copy
import time
import shutil
import logging
import logging.config
import click
import pyspider
shutil
shutil.rmtree(path[, ignore_errors[, onerror]])
Delete an entire directory tree;If ignore_errors is true, errors resulting from failed removals will be ignored
删除目录下的所有文件,如果ignore_error是true,出现错误会被忽视。
>>> import shutil
>>> shutil.rmtree('/home/comboo/test',True)