Stdlib index
- Captured-borrow migration worklist (3.3.3)
- Owned-bind migration worklist (8.2.7)
- Return-side title audit — the ride-through enumeration
- stdlib ownership audit
- stdlib ownership dispositions (plan 1.3.1 / 4.3.1)
aot
codec
codec / csv
codec / json
collection
- ArrayList
- BPlusTree
- Cache
- Collectors
- HashMap
- HashSet
- Heap
- ImmutableList
- ImmutableMap
- ImmutableSet
- LinkedList
- RedBlackTree
- Sort
collection / ltm
concurrent
error
- Exception
- NoOptionalValueException
- NotProvidedException
- RecoverableException
- ScopedBuildFailedException
- ScopeNotActiveException
- Throwable
- UnrecoverableException
gfx
hash
ifx
io
io / file
io / net
io / net / dns
io / net / uri
lang
lang / stream
math
math / fft
math / linalg
math / npio
math / poly
math / random
math / stats
nucleo
- Columns — the Arrow-laid-out substrate
- Fused tensor expressions — Fuse
- Table — the lazy, typed dataframe
- Tape — define-by-run autograd
- Transform intrinsics — Grad, Vmap, Jit
process
reflect
search / distance
search / fuzzy
search / ngram
session
time
- Clock
- DateTimeFormatter
- Duration
- Instant
- LocalDate
- LocalDateTime
- LocalTime
- Period
- ZonedDateTime
- ZoneId
- ZoneOffset
wire
xpu
xpu / mesh
FileInfo
cajeta.io.file.FileInfo — snapshot of a single stat call: size, timestamps,
type flags, and permission bits for one filesystem entry, captured in one
syscall so callers avoid per-attribute round-trips. Read the public fields
directly: size, createdNanos / modifiedNanos / accessedNanos (Unix
nanoseconds as int64), isFile / isDir / isSymlink, and permissions.
The flags mirror the cheaper single-attribute probes on Path; prefer
this type when you need several attributes at once. A stat-touching accessor on
Path that returns a populated FileInfo is planned; until then the only
constructor is the zero-initialized no-arg form.
FileInfo meta = heap FileInfo();
meta.size = (int64) 1024;
meta.isFile = true;
boolean regular = meta.isFile && !meta.isDir;
int64 mtime = meta.modifiedNanos; // Unix nanoseconds
Methods
| Signature | |
|---|---|
FileInfo() ⚑ | Zero-initialized record (all sizes/timestamps 0, all flags false) |
⚑ = @EntryPoint
See also
- Source:
runtime/src/cajeta/io/file/FileInfo.cajeta - Path — the single-attribute stat probes (
exists/isFile/isDir/isSymlink); File