How can I get the public URL of a file via a command? I need to do this within a Lua script, so Python or whatever else API's are offered aren't any good.
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
|
To get a public URL for a file via the commandline, you do
if the file is already published, it will return the existing URL; otherwise, it will publish the file and return the newly created URL. |
|||||
|