Opsmaru.Incus.SFTP.Stat (opsmaru_incus v0.1.0)

Copy Markdown View Source

File attributes as the pinned pkg/sftp client returns them: its os.FileInfo name, signed size and Go os.FileMode (file_mode), plus the native FileStat fields. Attributes a reply omits are zero, as natively. Times are Unix seconds.

Summary

Functions

Whether Go's FileInfo.IsDir is true.

Go's file type for the native mode.

Types

t()

@type t() :: %Opsmaru.Incus.SFTP.Stat{
  atime: term(),
  extended: term(),
  file_mode: term(),
  gid: term(),
  mode: term(),
  mtime: term(),
  name: term(),
  size: term(),
  uid: term()
}

Functions

dir?(stat)

Whether Go's FileInfo.IsDir is true.

type(stat)

Go's file type for the native mode.