Commit bda03bfd authored by Bruce Flynn's avatar Bruce Flynn
Browse files

remove isdir and perms from listdir, use mode instead

parent 76af1849
......@@ -182,8 +182,7 @@ type stat struct {
Name string `json:"name"`
Size int64 `json:"size"`
MTime int64 `json:"mtime"`
Dir bool `json:"isdir"`
Perms uint32 `json:"perms"`
Mode uint32 `json:"mode"`
}
// args: abspath glob pattern
......@@ -201,8 +200,7 @@ func (s sftpAPI) doListdir(path string) ([]stat, error) {
st.Name(),
st.Size(),
st.ModTime().Unix(),
st.IsDir(),
uint32(st.Mode().Perm()),
uint32(st.Mode()),
})
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment