MFSListEntry class

Kubo-compatible entry in an MFS directory listing.

Constructors

MFSListEntry({required String name, required int type, required int size, required String hash, int? mode, int? mtime, int? mtimeNsecs})
Creates a new MFSListEntry.

Properties

hash → String
CID string of the entry.
final
hashCode → int
The hash code for this object.
no setterinherited
mode → int?
Unix mode, when requested.
final
mtime → int?
Modification time in seconds since epoch, when requested.
final
mtimeNsecs → int?
Nanosecond fraction of the modification time, when requested.
final
name → String
Entry name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
Logical file size in bytes for files, 0 for directories — matching Kubo's files ls -l, which reports File.Size() (the UnixFS filesize, not the cumulative DAG size).
final
type → int
Entry type: 0=file (including raw leaves), 1=directory.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this entry to a Kubo-compatible JSON map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited