mirror of
https://github.com/rclone/rclone.git
synced 2025-12-19 17:53:16 +00:00
vendor: update all dependencies to latest versions
This commit is contained in:
4
vendor/github.com/pkg/sftp/attrs.go
generated
vendored
4
vendor/github.com/pkg/sftp/attrs.go
generated
vendored
@@ -94,6 +94,10 @@ func fileStatFromInfo(fi os.FileInfo) (uint32, FileStat) {
|
||||
|
||||
func unmarshalAttrs(b []byte) (*FileStat, []byte) {
|
||||
flags, b := unmarshalUint32(b)
|
||||
return getFileStat(flags, b)
|
||||
}
|
||||
|
||||
func getFileStat(flags uint32, b []byte) (*FileStat, []byte) {
|
||||
var fs FileStat
|
||||
if flags&ssh_FILEXFER_ATTR_SIZE == ssh_FILEXFER_ATTR_SIZE {
|
||||
fs.Size, b = unmarshalUint64(b)
|
||||
|
||||
Reference in New Issue
Block a user