Skip to content

Instantly share code, notes, and snippets.

@islandjoe
Created June 25, 2018 08:20
Show Gist options
  • Save islandjoe/c9acf8f11d54bea03b3721ae14534a43 to your computer and use it in GitHub Desktop.
Save islandjoe/c9acf8f11d54bea03b3721ae14534a43 to your computer and use it in GitHub Desktop.
Meme Machine: routes.swift - Paths for the 3 folders
let rootDir = DirectoryConfig.detect().workDir
let uploadDir = URL(fileURLWithPath: "\(rootDir)Public/uploads")
let origDir = uploadDir.appendingPathComponent("originals")
let thumbsDir = uploadDir.appendingPathComponent("thumbs")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment