1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

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
Former-commit-id: fc6a38f047
This commit is contained in:
Zack Scholl 2017-03-23 16:24:25 -06:00
parent bd3b9c96e1
commit 20dd8d4f20

View File

@ -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"))
}