'Alternative to "Download" as a PowerShell verb?
I've got a PowerShell function Download-File, which uses WebClient.DownloadFile -- hence the name.
When I attempt to turn my .ps1 script into a .psm1 module, PowerShell warns me that "Download" is not in the list of recommended verbs.
What's a good alternative? Get- seems to be about getting properties, rather than contents (apart from Get-Content, oddly). Receive- seems a bit too passive for my liking (i.e. the script blocks until the information is sent) -- which doesn't fit well.
Ideas?
Solution 1:[1]
For me, 'Get' is the most natural verb. It gets everthing, not just properties. For the noun I would use something like 'WebFile', you can easily guess what you get and where it is coming from.
Solution 2:[2]
Wouldn't this work:
Start-Download -Url http://blah/
Or use Invoke-Download, as per the recommendations for synchronous operations. Start is for asynchronous.
Solution 3:[3]
What about New-Download or New-WebDownload or New-DownloadFile??
Solution 4:[4]
Maybe Request-TeamCityArtifacts?
Solution 5:[5]
There is no synonym for download.
Copy is the closest I've found, being documented as a synonym of the unapproved Clone.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | manojlds |
| Solution 3 | CB. |
| Solution 4 | mhu |
| Solution 5 |
