Skip to content

Add aiofiles.os.link function#121

Merged
Tinche merged 1 commit into
Tinche:masterfrom
jpy-git:aiofiles.os.link
Jan 3, 2022
Merged

Add aiofiles.os.link function#121
Tinche merged 1 commit into
Tinche:masterfrom
jpy-git:aiofiles.os.link

Conversation

@jpy-git

@jpy-git jpy-git commented Jan 2, 2022

Copy link
Copy Markdown
Contributor

Fixes #117.

The os module in the stdlib provides a function called os.link that creates a hardlink to the src file. This PR adds the async version of that.

Docs: https://docs.python.org/3/library/os.html#os.link

I've added the relevant unit test in test_os.py

@codecov-commenter

codecov-commenter commented Jan 3, 2022

Copy link
Copy Markdown

Codecov Report

Merging #121 (70d876a) into master (d010ff4) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #121      +/-   ##
==========================================
+ Coverage   89.59%   89.63%   +0.03%     
==========================================
  Files          10       10              
  Lines         298      299       +1     
==========================================
+ Hits          267      268       +1     
  Misses         31       31              
Impacted Files Coverage Δ
src/aiofiles/os.py 100.00% <100.00%> (ø)

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 d010ff4...70d876a. Read the comment docs.

@Tinche

Tinche commented Jan 3, 2022

Copy link
Copy Markdown
Owner

Thank you!

@Tinche Tinche merged commit db6c5be into Tinche:master Jan 3, 2022
@jpy-git jpy-git deleted the aiofiles.os.link branch January 3, 2022 13:17
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.

Please add support for os.link()

3 participants