From b3e4351635ddd45c18e8bd012aae6b8345c3619d Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 11 Aug 2023 22:03:09 +0100 Subject: [PATCH] Tools: Cleanup --- tools/gts_copy.cc | 1 + tools/gts_get.cc | 1 + tools/gts_ls.cc | 1 + 3 files changed, 3 insertions(+) diff --git a/tools/gts_copy.cc b/tools/gts_copy.cc index 92dfe4530..9fdf7041a 100644 --- a/tools/gts_copy.cc +++ b/tools/gts_copy.cc @@ -67,6 +67,7 @@ int grib_tool_new_filename_action(grib_runtime_options* options, const char* fil int grib_tool_new_file_action(grib_runtime_options* options, grib_tools_file* file) { + exit_if_input_is_directory(tool_name, file->name); return 0; } diff --git a/tools/gts_get.cc b/tools/gts_get.cc index 39c1d2731..ccdf51d83 100644 --- a/tools/gts_get.cc +++ b/tools/gts_get.cc @@ -66,6 +66,7 @@ int grib_tool_new_filename_action(grib_runtime_options* options, const char* fil int grib_tool_new_file_action(grib_runtime_options* options, grib_tools_file* file) { + exit_if_input_is_directory(tool_name, file->name); return 0; } diff --git a/tools/gts_ls.cc b/tools/gts_ls.cc index b6a8a6666..50a8a70cf 100644 --- a/tools/gts_ls.cc +++ b/tools/gts_ls.cc @@ -78,6 +78,7 @@ int grib_tool_new_filename_action(grib_runtime_options* options, const char* fil int grib_tool_new_file_action(grib_runtime_options* options, grib_tools_file* file) { + exit_if_input_is_directory(tool_name, file->name); return 0; }