Skip to content

Commit 17c8e98

Browse files
author
Dirk Petersen (aider)
committed
fix: correct rclone checksum command argument order
1 parent 3817744 commit 17c8e98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

froster/froster.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5855,10 +5855,11 @@ def copy(self, src, dst, *args):
58555855
def checksum(self, md5file, dst, *args):
58565856
'''Check the checksum of a file using Rclone'''
58575857
try:
5858-
command = [self.rc, 'checksum'] + list(args)
5859-
command.append('md5')
5858+
command = [self.rc, 'checksum']
5859+
command.append('md5') # <-- Move hash type here
58605860
command.append(md5file)
58615861
command.append(dst)
5862+
command.extend(list(args)) # <-- Add flags at the end
58625863

58635864
return self._run_rclone_command(command)
58645865

0 commit comments

Comments
 (0)