WASIPreview2FilesystemDirectory class final
Directory contents exposed through a WASI 0.2 filesystem preopen.
Constructors
-
WASIPreview2FilesystemDirectory({Iterable<
WASIPreview2FilesystemDirectoryEntry> entries = const <WASIPreview2FilesystemDirectoryEntry>[], bool canMutate = false, Object? mutationContext, WASIPreview2FilesystemMetadataProvider? metadata, WASIPreview2FilesystemDirectoryMutationCallback? createDirectory, WASIPreview2FilesystemDirectoryFileCreateCallback? createFile, WASIPreview2FilesystemDirectoryLinkCallback? link, WASIPreview2FilesystemDirectoryRenameCallback? rename, WASIPreview2FilesystemDirectorySymlinkCallback? symlink, WASIPreview2FilesystemDirectoryReadLinkCallback? readLink, WASIPreview2FilesystemSetTimesCallback? setTimes, WASIPreview2FilesystemDirectoryMutationCallback? removeDirectory, WASIPreview2FilesystemDirectoryMutationCallback? unlinkFile, bool? createdFileCanMutate, bool? createdFileSupportsSync, bool? createdFileSupportsSyncData}) -
Creates a directory model with stable
entries. - WASIPreview2FilesystemDirectory.dynamic({required WASIPreview2FilesystemDirectoryEntriesProvider entries, WASIPreview2FilesystemDirectoryEntryResolver? resolveEntry, bool canMutate = false, Object? mutationContext, WASIPreview2FilesystemMetadataProvider? metadata, WASIPreview2FilesystemDirectoryMutationCallback? createDirectory, WASIPreview2FilesystemDirectoryFileCreateCallback? createFile, WASIPreview2FilesystemDirectoryLinkCallback? link, WASIPreview2FilesystemDirectoryRenameCallback? rename, WASIPreview2FilesystemDirectorySymlinkCallback? symlink, WASIPreview2FilesystemDirectoryReadLinkCallback? readLink, WASIPreview2FilesystemSetTimesCallback? setTimes, WASIPreview2FilesystemDirectoryMutationCallback? removeDirectory, WASIPreview2FilesystemDirectoryMutationCallback? unlinkFile, bool? createdFileCanMutate, bool createdFileSupportsSync = false, bool createdFileSupportsSyncData = false})
- Creates a directory whose contents are loaded from callbacks.
Properties
- canMutate → bool
-
Whether descriptors opened for this directory can request mutation flags.
final
- createdFileCanMutate → bool
-
Whether files created by this directory can be opened for mutation.
final
- createdFileSupportsSync → bool
-
Whether files created by this directory support
sync.final - createdFileSupportsSyncData → bool
-
Whether files created by this directory support
sync-data.final -
entries
→ List<
WASIPreview2FilesystemDirectoryEntry> -
Entries returned by
descriptor.read-directory.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- mutationContext → Object?
-
Opaque host-specific context available to mutation callbacks.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited