From 222e18600091da2f48cfe3a1148ef8f3189d4329 Mon Sep 17 00:00:00 2001 From: Guillaume Kulakowski Date: Wed, 1 May 2024 19:05:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Replace=20rename=20by=20posix=5F?= =?UTF-8?q?rename=20with=20update=20of=20paramiko?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/devops.yml | 6 +----- seedboxsync/core/sync/sftp_client.py | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/devops.yml b/.github/workflows/devops.yml index 406d745..0ae3e2a 100644 --- a/.github/workflows/devops.yml +++ b/.github/workflows/devops.yml @@ -21,11 +21,7 @@ jobs: steps: - name: Git checkout uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' + - name: Install Dependencies run: pip install -r requirements-dev.txt - name: Make all tests with make diff --git a/seedboxsync/core/sync/sftp_client.py b/seedboxsync/core/sync/sftp_client.py index 89933b7..83f1d56 100644 --- a/seedboxsync/core/sync/sftp_client.py +++ b/seedboxsync/core/sync/sftp_client.py @@ -130,7 +130,7 @@ def rename(self, old_path: str, new_path: str): :param str old_path: existing name of the file or folder :param str new_path: new name for the file or folder """ - return self.__client.rename(old_path, new_path) + return self.__client.posix_rename(old_path, new_path) # Code from https://gist.github.com/johnfink8/2190472 def walk(self, remote_path: str):