From fc6a38f047e2e3ec92aecbc1f6817760c6383d86 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 23 Mar 2017 16:24:25 -0600 Subject: [PATCH] Fix: filenames to lower case before base32 Former-commit-id: 75492d2819399d026bac979cdfdc9ca3b6cf1466 [formerly e32fd7161849a8e11d2b31f27deb04378f9dcbb4] [formerly da830c5c0d0b73548699f6a6341eb55f5afa130f [formerly 7a780609f7276ff3569323beb61cb12088e17447]] Former-commit-id: a9a517909321225859867f0b031b8303d35102ae [formerly 59d8c184f6f6359f811b1413b259a01aaee93854] Former-commit-id: f31efaed6d2b7175ea50f8205ae2fae034163518 --- page.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/page.go b/page.go index 42110bb..ca53b0f 100755 --- a/page.go +++ b/page.go @@ -69,5 +69,6 @@ func (p *Page) Save() error { } func (p *Page) Erase() error { - return os.Remove(path.Join(pathToData, encodeToBase32(p.Name)+".json")) + log.Trace("Erasing " + p.Name) + return os.Remove(path.Join(pathToData, encodeToBase32(strings.ToLower(p.Name))+".json")) }