This repository has been archived on 2026-07-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
codespace/internal/fs/fileinfo.go
T
2026-07-02 15:07:54 +08:00

14 lines
360 B
Go

package fs
import "time"
// FileInfo describes a file or directory within a workspace.
// Path is always workspace-relative; host absolute paths are never exposed.
type FileInfo struct {
Name string `json:"name"`
Path string `json:"path"`
IsDir bool `json:"isDir"`
Size int64 `json:"size"`
ModTime time.Time `json:"modTime"`
}