This commit is contained in:
Amber 2024-10-03 17:14:37 +02:00
parent 0fc4ba6b36
commit 935ca8e265

View File

@ -109,6 +109,7 @@ class AdvancedSftpClientAgent(BaseAgent):
sftpc = self.get_sftp_client()
def remove_dir_recursive(path):
if not path.endswith(os.sep): path = '%s%s' % (path, os.sep)
print(f'Path: {path}')
items = sftpc.listdir_attr(path)
if not items: