Skip to content

Add os.scandir #852

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

Merged
merged 4 commits into from
Apr 21, 2019
Merged

Add os.scandir #852

merged 4 commits into from
Apr 21, 2019

Conversation

palaviv
Copy link
Contributor

@palaviv palaviv commented Apr 21, 2019

Currently support name, path, is_dir, is_file.
I will add stat and symlink support in separate PRs.

@codecov-io
Copy link

Codecov Report

Merging #852 into master will increase coverage by <.01%.
The diff coverage is 65.45%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #852      +/-   ##
==========================================
+ Coverage   63.14%   63.15%   +<.01%     
==========================================
  Files          88       88              
  Lines       14591    14646      +55     
  Branches     3265     3276      +11     
==========================================
+ Hits         9214     9250      +36     
- Misses       3239     3247       +8     
- Partials     2138     2149      +11
Impacted Files Coverage Δ
vm/src/stdlib/os.rs 62.56% <65.45%> (+1.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3afb5d3...64e6ea0. Read the comment docs.

@@ -73,3 +75,26 @@ def __exit__(self, exc_type, exc_val, exc_tb):
assert os.read(fd, len(CONTENT2)) == CONTENT2
assert os.read(fd, len(CONTENT3)) == CONTENT3
os.close(fd)

fname2 = tmpdir + os.sep + FILE_NAME2
Copy link
Contributor

Choose a reason for hiding this comment

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

We are in need of os.path.join :).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's all python code in path. I will look if it can be copied as is.

@windelbouwman windelbouwman merged commit adb6632 into RustPython:master Apr 21, 2019
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