Skip to content

Instantly share code, notes, and snippets.

@scripting
Last active February 25, 2021 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scripting/ea1ba23a59365707f9b3a35e3994f222 to your computer and use it in GitHub Desktop.
Save scripting/ea1ba23a59365707f9b3a35e3994f222 to your computer and use it in GitHub Desktop.
makeFilePublic: function (path) {
return new Promise (function (resolve, reject) {
servercall ("makefilepublic", {relpath: path}, true, function (err, data) {
if (err) {
reject (err);
}
else {
resolve (data.url);
}
});
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment