Merged
Conversation
Contributor
|
Need to add feature to CI release feature list: |
zees-dev
reviewed
May 29, 2025
zees-dev
reviewed
May 29, 2025
Contributor
zees-dev
left a comment
There was a problem hiding this comment.
Looking good!
minor changes required
Contributor
|
I think this needs to be addressed before approval: #12 (comment) |
Contributor
Author
yes thanks |
Co-authored-by: zees-dev <63374656+zees-dev@users.noreply.github.com>
Co-authored-by: zees-dev <63374656+zees-dev@users.noreply.github.com>
Co-authored-by: zees-dev <63374656+zees-dev@users.noreply.github.com>
Co-authored-by: zees-dev <63374656+zees-dev@users.noreply.github.com>
Co-authored-by: zees-dev <63374656+zees-dev@users.noreply.github.com>
zees-dev
approved these changes
Jun 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This MR introduces initial support for WASI-compatible filesystem operations within the javy-bless-plugins. The goal is to enable richer I/O capabilities for plugin developers by exposing a set of common filesystem functions.
✅ Implemented Syscalls and Utilities
The following filesystem operations have been implemented:
open: Opens a file for reading or writing, supporting standard WASI flags and modes. This allows plugins to interact with files on the virtual filesystem.
mkdir: Creates a new directory. Proper error handling is in place to prevent overwriting existing paths.
rmdir: Removes a directory if it is empty. Ensures safety by checking contents before deletion.
unlink: Deletes a file. This helps plugins manage temporary or outdated files effectively.
rename: Allows renaming or moving a file or directory within the virtual filesystem.
stat: Retrieves metadata about a file or directory (e.g., size, timestamps, permissions). This is useful for inspection and conditional logic inside plugin workflows.
fatime (file access time) and fmtime (file modification time): Provides fine-grained file metadata access for audit or caching purposes.
readString: A convenience helper to read a file's contents as a UTF-8 string.
readAll: A lower-level utility to read the entire contents of a file into a buffer, suitable for binary files or streaming scenarios
etc: The framework is designed for extensibility, with future support planned for additional syscalls like write, symlink, chmod