aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2019-03-13 08:17:27 -0700
committerChristine Dodrill <me@christine.website>2019-03-13 08:17:27 -0700
commitf60986d1f89680fd8e2b3f21200e67aea108ae20 (patch)
tree19c37cc6722f09ca3337bfc4199a3d79695c3590 /internal
parent8ba8fbebb4bbd0d4d01f1ff6c08ef56bfa5b8d06 (diff)
downloadx-f60986d1f89680fd8e2b3f21200e67aea108ae20.tar.xz
x-f60986d1f89680fd8e2b3f21200e67aea108ae20.zip
internal/greedo: add slugs prefix to copied files
Diffstat (limited to 'internal')
-rw-r--r--internal/greedo/greedo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/greedo/greedo.go b/internal/greedo/greedo.go
index 5ec2c58..75e1a3e 100644
--- a/internal/greedo/greedo.go
+++ b/internal/greedo/greedo.go
@@ -71,7 +71,7 @@ func Copy(mode os.FileMode, fileName string, contents io.Reader, destinationPath
// CopyFile copies a file to Greedo's public files folder and returns its public-facing URL.
func CopyFile(fileName string, contents io.Reader) (string, error) {
- err := Copy(0644, fileName, contents, filepath.Join("public_html", "files", fileName))
+ err := Copy(0644, fileName, contents, filepath.Join("public_html", "files", "slugs", fileName))
if err != nil {
return "", err
}