FileManifestEntry class

A single file recorded in a FileManifest.

mtime is captured for diagnostics but deliberately excluded from the manifest hash so the directory reference stays content-addressed and reproducible across machines.

executable records whether the file carries a POSIX execute bit. Like mtime it is kept out of hashCode/operator == (and the manifest hash) so the directory reference stays purely content-addressed; the synchronizer's differ compares it explicitly so an exec-bit change still syncs.

Constructors

FileManifestEntry({required String path, required int size, required ContentHash hash, DateTime? mtime, bool executable = false})
const
FileManifestEntry.fromJson(Map<String, dynamic> json)
factory

Properties

executable → bool
Whether the file is executable (any POSIX execute bit set). Always false on platforms without execute bits. Not part of the manifest hash.
final
hash → ContentHash
Content hash of the file bytes.
final
hashCode → int
The hash code for this object.
no setteroverride
mtime → DateTime?
Last modified time, if known. Not part of the manifest hash.
final
path → String
Forward-slash relative path from the drive root.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
File size in bytes.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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