Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add multi backend support for fs io #59

Merged
merged 11 commits into from
Sep 23, 2024
Merged

add multi backend support for fs io #59

merged 11 commits into from
Sep 23, 2024

Conversation

Young-Flash
Copy link
Contributor

No description provided.

@Young-Flash
Copy link
Contributor Author

need bleeding moonrun to run test

fs/fs.mbti Outdated Show resolved Hide resolved
fs/fs.mbt Outdated Show resolved Hide resolved
@@ -60,7 +60,6 @@ jobs:
git diff --exit-code

coverage-check-bleeding:
if: false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

@Yoorkin Yoorkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@lijunchen lijunchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

fs/fs.mbt Outdated
/// A `String` containing the file contents if the file exists, otherwise raises an error.
pub fn read_file_to_string(~path : String) -> String! {
guard path_exists(~path) else {
raise IOError::NotFound("file `\{path}` does not exist")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

raise IOError::NotFound(path) is enough here. We can customize the Show trait for IOError to reduce redundant error messages.

@Young-Flash Young-Flash changed the title add multi backend support for io add multi backend support for fs io Sep 23, 2024
@Young-Flash Young-Flash merged commit 3a09c6d into main Sep 23, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants