Skip to content

Add aiofiles.os.unlink function#123

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

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

Conversation

@jpy-git

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

Copy link
Copy Markdown
Contributor

The os module in the stdlib provides a function called os.unlink that is semantically identical to remove(). This PR adds the async version of that.

Docs: https://docs.python.org/3/library/os.html?highlight=os#os.unlink

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

@codecov-commenter

codecov-commenter commented Jan 6, 2022

Copy link
Copy Markdown

Codecov Report

Merging #123 (ebbb8c6) into master (db6c5be) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #123      +/-   ##
==========================================
+ Coverage   89.66%   89.70%   +0.03%     
==========================================
  Files          10       10              
  Lines         300      301       +1     
==========================================
+ Hits          269      270       +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 db6c5be...ebbb8c6. Read the comment docs.

@Tinche

Tinche commented Jan 6, 2022

Copy link
Copy Markdown
Owner

GJ, thanks!

@Tinche Tinche merged commit 850a8c0 into Tinche:master Jan 6, 2022
@jpy-git jpy-git deleted the aiofiles.os.unlink branch January 6, 2022 21:39
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