Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Rename RelativePath.relative_to()?

Open
#26 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start with filesystems/_path.py lines 95-101 and compare the method's behavior and docstring with pathlib.PurePath.relative_to(). Also locate Path.cwd() and review how its path parameter is used. Done means the naming and default-parameter proposal are applied consistently without breaking the existing filesystem API.

Written by the indexing model from the issue text.

Description

https://github.com/Julian/Filesystems/blob/427e565da044dd74728436fd0833deabd314e7c5/filesystems/_path.py#L95-L101

This just doesn't read properly to me. I expect relative_to() to take an absolute path and create a relative one. Even the docstring uses 'resolve' instead. Perhaps my reading of it is tainted by pathlib but I think it's separately reasonable.

https://docs.python.org/3.7/library/pathlib.html#pathlib.PurePath.relative_to

I'll propose resolve(). I'd also provide a default for the path parameter of Path.cwd().

Dominant language
Python
Stars
2
Forks
6
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Julian/Filesystems

All issues in Julian/Filesystems

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.