rclone/backend/sftp
Tomasz Melcer 27267547b9
sftp: use uint32 for mtime
The SFTP protocol (and the golang sftp package) internally uses uint32 unix
time for expressing mtime. Hence it is a waste of memory to store it as 24-byte
time.Time data structure in long-lived data structures. So despite that the
golang sftp package uses time.Time as external interface, we can re-encode the
value back to the original format and save memory.

Co-authored-by: Tomasz Melcer <tomasz@melcer.pl>
2024-07-09 10:23:11 +01:00
..
sftp.go sftp: use uint32 for mtime 2024-07-09 10:23:11 +01:00
sftp_internal_test.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
sftp_test.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
sftp_unsupported.go build: fix linting issues reported by running golangci-lint with different GOOS 2024-04-22 19:29:12 +02:00
ssh.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
ssh_external.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
ssh_internal.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
stringlock.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
stringlock_test.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00