warning message for recursive get when a non-Project of Folder entity is passed

Description

The command line client silently returns if a user provides the Synapse ID of a File instead of a Project or Folder to the '-r' flag for recursive download. A check should be performed to warn the user of this.

To prevent extra REST calls when a proper Synapse ID is passed, this could be performed AFTER the query, if the results are empty.

Environment

None

Activity

Show:
Kenneth Daily
June 8, 2017, 11:00 PM

Doesn't download the file. Tested:

Kenneth Daily
July 27, 2017, 8:06 PM

Open PR in Github, so assuming this isn't finished.

Kenneth Daily
January 12, 2018, 7:28 PM

Does not output same as a 'synapse get' does, meaning it's difficult to know what was downloaded.

Kenneth Daily
January 12, 2018, 7:28 PM

Can close this and open another issue to improve output though, as the file does download.

Kenneth Daily
January 12, 2018, 8:18 PM

gets the file as expected. opened followup issue to change output to user.

Assignee

Ziming Dong

Reporter

Kenneth Daily

Labels

None

Validator

Kenneth Daily

Development Area

None

Release Version History

None

Fix versions

Priority

Major
Configure