diff options
author | Pacien | 2013-07-01 12:42:28 +0200 |
---|---|---|
committer | Pacien | 2013-07-01 12:42:28 +0200 |
commit | c879511377bdb76615b58b212f030e82fb88d3be (patch) | |
tree | 9c3783284594b98d923e230d361ec76e86200f3b /context.go | |
parent | 7b0b720efbf39ded2f72363d36424281df2b0491 (diff) | |
download | foldaweb-c879511377bdb76615b58b212f030e82fb88d3be.tar.gz |
Replace file manipulation functions by the fcmd package
Diffstat (limited to 'context.go')
-rw-r--r-- | context.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,6 +20,7 @@ | |||
20 | package main | 20 | package main |
21 | 21 | ||
22 | import ( | 22 | import ( |
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 | ||
50 | func (c context) SubPages() (subPages []page) { | 51 | func (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 |