Skip to content

Commit

Permalink
🚑 Replace rename by posix_rename with update of paramiko
Browse files Browse the repository at this point in the history
  • Loading branch information
llaumgui committed May 1, 2024
1 parent 7dd0cf1 commit 222e186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/devops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion seedboxsync/core/sync/sftp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 222e186

Please sign in to comment.