From bb1626702d9796422f563bbe3eba34bc15c08ab9 Mon Sep 17 00:00:00 2001 From: Joe Stassi Date: Tue, 15 Jul 2025 13:43:39 -0400 Subject: [PATCH 1/2] In Remote_utils.pm, in sub local_get() called by sub rget(), added option to make symbolic link to file rather than copying it. --- Remote_utils.pm | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Remote_utils.pm b/Remote_utils.pm index 751c41b..bdd3465 100755 --- a/Remote_utils.pm +++ b/Remote_utils.pm @@ -2409,16 +2409,23 @@ sub local_get{ ( $remote_id, $remote_machine, $remote_file ) = @_[0..2]; } - if ($options{"preserve"}) { - $cmd = "cp -p $remote_file $local_file"; + if ($options{"links"}) { + $cmd = "ln -s $remote_file $local_file"; print "cmd = $cmd\n"; system($cmd); $retcode = $? >> 8; if ($retcode) { $cp_ok = 0 } else { $cp_ok = 1 } + } elsif ($options{"preserve"}) { + $cmd = "cp -p $remote_file $local_file"; + print "cmd = $cmd\n"; + system($cmd); + $retcode = $? >> 8; + if ($retcode) { $cp_ok = 0 } + else { $cp_ok = 1 } } else { - print "cmd = copy( $remote_file, $local_file )\n"; - $cp_ok = copy( $remote_file, $local_file ); + print "cmd = copy( $remote_file, $local_file )\n"; + $cp_ok = copy( $remote_file, $local_file ); } return( $cp_ok ); From 84bccbf368d4208549affbb6dc48c9af370235ea Mon Sep 17 00:00:00 2001 From: Matthew Thompson Date: Mon, 18 Aug 2025 12:00:00 -0400 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51906ca..7f21d53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Deprecated +## [1.2.0] - 2025-08-18 + +### Changed + +- Add option in `local_get()` in `Remote_utils.pm` to allow symbolic links instead of copies + ## [1.1.0] - 2025-04-15 ### Added