fr4nk5ch31n3r / gtransfer

GridFTP transfers made easy!
GNU General Public License v3.0
7 stars 3 forks source link

gtransfer v0.1.1: problem with non-recursive transfers #4

Closed fr4nk5ch31n3r closed 11 years ago

fr4nk5ch31n3r commented 11 years ago

listTransfer/createTransferList() contains an issue that might lead to a failing call to globus-url-copy (guc):

#  to get the transfer list we use guc with "-do" option
globus-url-copy -do "$_transferListFile" "$_recursive" "$_source" "$_destination"

The double quotes around $_recursive need to be removed, as otherwise if $_recursive is empty (empty parameter), guc evaluates this parameter as URL as it does not contain a dash at the beginning.