mirror of
https://github.com/golang/go
synced 2024-11-13 18:20:32 -07:00
godoc: remove dependency of syscall
On app-engine, we cannot import syscall. The respective constants are already defined elsewhere for the same reason. R=r, dsymonds CC=golang-dev https://golang.org/cl/5036042
This commit is contained in:
parent
66e44000d4
commit
642d272c3c
@ -23,7 +23,6 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
|
||||||
"template"
|
"template"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@ -826,9 +825,9 @@ func fsReadDir(dir string) ([]*os.FileInfo, os.Error) {
|
|||||||
// Convert []FileInfo to []*os.FileInfo.
|
// Convert []FileInfo to []*os.FileInfo.
|
||||||
osfi := make([]*os.FileInfo, len(fi))
|
osfi := make([]*os.FileInfo, len(fi))
|
||||||
for i, f := range fi {
|
for i, f := range fi {
|
||||||
mode := uint32(syscall.S_IFREG)
|
mode := uint32(S_IFREG)
|
||||||
if f.IsDirectory() {
|
if f.IsDirectory() {
|
||||||
mode = syscall.S_IFDIR
|
mode = S_IFDIR
|
||||||
}
|
}
|
||||||
osfi[i] = &os.FileInfo{Name: f.Name(), Size: f.Size(), Mtime_ns: f.Mtime_ns(), Mode: mode}
|
osfi[i] = &os.FileInfo{Name: f.Name(), Size: f.Size(), Mtime_ns: f.Mtime_ns(), Mode: mode}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user