aboutsummaryrefslogtreecommitdiff
path: root/context.go
diff options
context:
space:
mode:
authorPacien2013-07-01 12:42:28 +0200
committerPacien2013-07-01 12:42:28 +0200
commitc879511377bdb76615b58b212f030e82fb88d3be (patch)
tree9c3783284594b98d923e230d361ec76e86200f3b /context.go
parent7b0b720efbf39ded2f72363d36424281df2b0491 (diff)
downloadfoldaweb-c879511377bdb76615b58b212f030e82fb88d3be.tar.gz
Replace file manipulation functions by the fcmd package
Diffstat (limited to 'context.go')
-rw-r--r--context.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/context.go b/context.go
index 8b41a52..aff6a5d 100644
--- a/context.go
+++ b/context.go
@@ -20,6 +20,7 @@
20package main 20package main
21 21
22import ( 22import (
23 "github.com/Pacien/fcmd"
23 "path" 24 "path"
24 "strings" 25 "strings"
25) 26)
@@ -48,7 +49,7 @@ func (c context) Title() string {
48} 49}
49 50
50func (c context) SubPages() (subPages []page) { 51func (c context) SubPages() (subPages []page) {
51 dirs, _ := ls(c.path) 52 dirs, _ := fcmd.Ls(c.path)
52 for _, dir := range dirs { 53 for _, dir := range dirs {
53 var page page 54 var page page
54 page.Title = dir 55 page.Title = dir