qgreenland/util/cleanup.py
def cleanup_intermediate_dirs():
    """Delete all intermediate data, except maybe 'fetch' dir."""
    if os.path.isfile(ZIP_TRIGGERFILE):
        os.remove(ZIP_TRIGGERFILE)

    for task_type in TaskType:
        if task_type != TaskType.FETCH:
            _rmtree(task_type.value)

    if os.path.isdir(WIP_DIR):
        for x in os.listdir(WIP_DIR):
            if x.startswith('tmp'):
                _rmtree(x)
Delete all intermediate data, except maybe 'fetch' dir.
Delete all intermediate data, except maybe 'fetch' dir.
Delete all intermediate data except maybe ' fetch ' dir .
def cleanup_intermediate_dirs():
    if os.path.isfile(ZIP_TRIGGERFILE):
        os.remove(ZIP_TRIGGERFILE)
    for task_type in TaskType:
        if task_type != TaskType.FETCH:
            _rmtree(task_type.value)
    if os.path.isdir(WIP_DIR):
        for x in os.listdir(WIP_DIR):
            if x.startswith('tmp'):
                _rmtree(x)
def cleanup_intermediate_dirs ( ) : if os . path . isfile ( ZIP_TRIGGERFILE ) : os . remove ( ZIP_TRIGGERFILE ) for task_type in TaskType : if task_type != TaskType . FETCH : _rmtree ( task_type . value ) if os . path . isdir ( WIP_DIR ) : for x in os . listdir ( WIP_DIR ) : if x . startswith ( 'tmp' ) : _rmtree ( x )
Delete all intermediate data, except maybe 'fetch' dir.
Delete all intermediate data except maybe ' fetch ' dir .
"""Delete all intermediate data, except maybe 'fetch' dir."""