Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
insign committed Apr 15, 2024
1 parent 06fa705 commit d4ec52d
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 39 deletions.
62 changes: 31 additions & 31 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
#!/usr/bin/make

test: ## Start containers detached
CMD="run-script test-local" make composer
make test-offline
init: ## Start a new develop environment
make cin
test-offline:
docker compose run --rm test_sftp_to_s3
docker compose run --rm test_s3_to_sftp
docker compose run test_local
docker compose run test_sftp
docker compose run test_ftp
docker compose run test_s3
docker compose run test_sftp_to_s3
docker compose run test_s3_to_sftp
logs: ## Show the output logs
docker compose logs
log: ## Open the logs and follow the news
Expand Down
6 changes: 1 addition & 5 deletions src/Rclone.php
Original file line number Diff line number Diff line change
Expand Up @@ -631,11 +631,7 @@ public function download_to_local(string $remote_path, ?string $local_path = nul

$success = $rclone->copy($remote_path, $local_path, $flags, $onProgress);

if (!$success) {
return false;
}

return $local_path;
return !$success ? false : $local_path;
}

public function copy ( string $source_path, string $dest_DIR_path, array $flags = [], callable $onProgress = NULL ): bool
Expand Down

0 comments on commit d4ec52d

Please sign in to comment.