Last active
February 25, 2021 18:53
-
-
Save scripting/ea1ba23a59365707f9b3a35e3994f222 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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