TACC-Cloud / agave-cli

The Tapis CLI
Other
4 stars 8 forks source link

files-get fails on default directory #47

Closed georgebzheng closed 5 years ago

georgebzheng commented 5 years ago

After setting the default work directory, I tried the following command sequences:


(fcs-etl-reactor) MacBook-Pro:/Users/gzheng/projects/SD2/temp>files-list -L sd2e-data/my_copy.txt -rw------- gzheng 0 08:36 my_copy.txt (fcs-etl-reactor) MacBook-Pro:/Users/gzheng/projects/SD2/temp>files-get sd2e-data/my_copy.txt

usage: touch [-A [-][[hh]mm]SS] [-acfhm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]] file ... (fcs-etl-reactor) MacBook-Pro:/Users/gzheng/projects/SD2/temp>

The second command works only with the -S flag.

johnfonner commented 5 years ago

The files-get command uses a different code path for files of zero size. As part of that code path, it uses the "touch" command to create an empty file. The actual line of code says touch $filename. I'm not able to reproduce this error on my own machine. What version of OS X do you have? Would you try your files-get command again with the -v flag? I suspect either $filename was somehow empty or something unexpected happened with the touch command itself.

mwes commented 5 years ago

@georgebzheng can you review against John's comment and close or update as necessary? Thanks!

georgebzheng commented 5 years ago

@mwes I just tried the same command again and it works now. Please go ahead and close the issue.

mwes commented 5 years ago

@georgebzheng I can't close - you opened the issue, so you'll need to close. Thanks!

georgebzheng commented 5 years ago

@mwes I am closing the issue.