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

Unable to show full path as string #23

Open
Grumpythedwarff opened this issue Sep 2, 2020 · 1 comment
Open

Unable to show full path as string #23

Grumpythedwarff opened this issue Sep 2, 2020 · 1 comment

Comments

@Grumpythedwarff
Copy link

We have the method Path.name() to show the filename associated with a path, but there doesn't appear to a way to show the full file path without wrapping in a str() function, which is a little ugly.

Could something like Path.fullname() be included as a method?

@chris1610
Copy link
Owner

Pathlib is a python library function so I can't change it.

I did do some research on your question and apparently there is quite a bit of discussion about the best approach to resolve.
This SO question is good.

I also recommend looking through this discussion on the developer's docs.

It seems like the recommended approach is to use Path.resolve() which may or may not be what you need.

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

No branches or pull requests

2 participants