From ecf4e9d228b41ccc4c45d669f993e71ea4f864e6 Mon Sep 17 00:00:00 2001 From: Joe Reuss Date: Thu, 23 May 2024 09:43:11 -0500 Subject: [PATCH] Update comments --- client/handle_http_test.go | 2 ++ client/main.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/handle_http_test.go b/client/handle_http_test.go index 45c1c9ea1..01bb5a40f 100644 --- a/client/handle_http_test.go +++ b/client/handle_http_test.go @@ -936,6 +936,8 @@ func TestNewTransferEngine(t *testing.T) { }) } +// Test the functionality of getting the collections URL from the director or from the namespace ad. +// Tests different responses from the director with and without 'dirlisthost' specified in the namespace. func TestGetCollectionsUrl(t *testing.T) { viper.Reset() defer viper.Reset() diff --git a/client/main.go b/client/main.go index c8e1348fd..fff23f90f 100644 --- a/client/main.go +++ b/client/main.go @@ -552,7 +552,7 @@ func DoList(ctx context.Context, remoteObject string, options ...TransferOption) } } - // If a user specifies dirOnly and fileOnly, this means basic functionality (list both files and directories) so just remove the flags + // If a user specifies dirOnly and objectOnly, this means basic functionality (list both objects and directories) so just remove the flags if dironly && objectonly { dironly = false objectonly = false