aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh/sftp/dir_entry.go
AgeCommit message (Collapse)Author
2026-01-15all: convert license and copyright to use SPDX identifiersShulhan
With help of spdxconv tool [1], we able to bulk update all files license and copyright format to comply with SPDX formats. [1] https://kilabit.info/project/spdxconv/
2023-09-11ssh/sftp: realign struct for better size allocationShulhan
The realignment reduce the cost of the following struct, * Client: from 88 to 80 bytes (-8) * dirEntry: from 40 to 32 bytes (-8) * FileAttrs: from 72 to 64 bytes (-8) * packet: from 128 to 88 bytes (-40) While at it, add missing comment to FileHandle type.
2022-05-09all: reformat all codes using gofmt 1.19 (the Go tip)Shulhan
2021-07-12ssh/sftp: make the package compatible with standard fs packageShulhan
List of changes, * Rename Node type to dirEntry and implement fs.DirEntry on it * Change the Client Readdir, Readlink, and Realpath to return fs.DirEntry * Make the response packet garbage collected by storing the result in returned type and setting the response packet fields to nil * Add field name to FileAttrs, which store the remote file name * Implement fs.FileInfo interface in FileAttrs * Store the remote path on FileHandle