Skip to content

Instantly share code, notes, and snippets.

@scripting
Created April 2, 2016 21:34
Show Gist options
  • Save scripting/d431606e3eb8673d9acba00c7231ec94 to your computer and use it in GitHub Desktop.
Save scripting/d431606e3eb8673d9acba00c7231ec94 to your computer and use it in GitHub Desktop.
Example of a callback script for nodeStorage, used to mirror all files published by a user in another location
if (screenName == "bullmancuso") {
s3.newObject ("/bullman.io/mirror/" + relpath, body, type);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment