-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
bpo-30897: Add is_mount() to pathlib.Path #2669
Conversation
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. Thanks again to your contribution and we look forward to looking at it! |
Getting a Windows VM to play with the error. All suggestions welcome! |
I removed "bpo-30891: " from the title, since http://bugs.python.org/issue30891 is unrelated. |
@@ -1329,6 +1329,27 @@ def is_file(self): | |||
# (see https://bitbucket.org/pitrou/pathlib/issue/12/) | |||
return False | |||
|
|||
def is_mount(self): | |||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be much easy to just return os.path.ismount(self)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easier, possibly. But I still think I'll hit my current issue with Windows. No like function in the library hits the 'os' module and I am pretty sure Python core developers would want this library standalone where possible.
I may need to rebase - that appveyor failure looks unrelated to me. |
* Add in is_mount() call to pathlib.Path similiar to os.path.ismount(path) * Add tests for is_mount()
Rebase got all checks to pass 💃 |
https://bugs.python.org/issue30897