Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bruce Flynn
sftper
Commits
bda03bfd
Commit
bda03bfd
authored
Oct 04, 2019
by
Bruce Flynn
Browse files
remove isdir and perms from listdir, use mode instead
parent
76af1849
Changes
1
Hide whitespace changes
Inline
Side-by-side
api.go
View file @
bda03bfd
...
...
@@ -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
()),
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment