Skip to content

Entry

In std/io/fs.

type Entry { path : Path name : String kind : String size? : Int modified? : Instant }

One thing a folder holds: its path, the listed folder's path joined with the entry's path below it, so file(e.path) reads it; its name, the last segment; its kind, "file", "folder" or "link"; its size, a file's length in bytes, absent for a folder or a link; and its modified, the time the entry was last modified, a link's own and not its target's, absent where the platform does not record one. A link is reported and not followed.