def __enter__(self):
    if (not os.path.exists(self.destination)):
        runLog.debug(f'Creating destination folder {self.destination}')
        try:
            os.makedirs(self.destination)
        except OSError:
            runLog.debug(f'Failed to make destination folder')
    else:
        runLog.debug(f'Destination folder already exists: {self.destination}')
    DirectoryChanger.__enter__(self)
    if self.clean:
        shutil.rmtree('.', ignore_errors=True)
    return self
def __enter__(self):
    if (not os.path.exists(self.destination)):
        runLog.debug(f'Creating destination folder {self.destination}')
        try:
            os.makedirs(self.destination)
        except OSError:
            runLog.debug(f'Failed to make destination folder')
    else:
        runLog.debug(f'Destination folder already exists: {self.destination}')
    DirectoryChanger.__enter__(self)
    if self.clean:
        shutil.rmtree('.', ignore_errors=True)
    return self