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

kernel/file: Add read_file/2 #7220

Merged
merged 2 commits into from
May 22, 2023

Conversation

jdamanalo
Copy link
Contributor

Closes #3624. One particular use case is reading many small files.

As an aside, there seems to be an unintended error in file:delete(File, []). The file server does not handle delete calls with options. This is because there is no prim_file:delete/2 anyway. Should I open a separate issue or fix it here?

@github-actions
Copy link
Contributor

github-actions bot commented May 11, 2023

CT Test Results

       2 files       65 suites   1h 4m 4s ⏱️
1 471 tests 1 242 ✔️ 228 💤 1
1 659 runs  1 386 ✔️ 272 💤 1

For more details on these failures, see this check.

Results for commit 039a3bd.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@jhogberg
Copy link
Contributor

jhogberg commented May 11, 2023

Thanks for the PR! It looks good, but we're in a code freeze for OTP 26 so I can't add it to the nightly builds until that's released.

Should I open a separate issue or fix it here?

Feel free to fix it in a separate commit in this PR :)

@jhogberg jhogberg self-assigned this May 11, 2023
@jhogberg jhogberg added team:VM Assigned to OTP team VM feature labels May 11, 2023
@jhogberg jhogberg added the testing currently being tested, tag is used by OTP internal CI label May 17, 2023
@jhogberg jhogberg merged commit 7df46d0 into erlang:master May 22, 2023
13 of 15 checks passed
@jhogberg
Copy link
Contributor

Merged, thanks again for the PR! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERL-315: Function file:read_file/2 is missing
2 participants