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

Add a new struct: StartingPoint #68

Merged
merged 1 commit into from
Jun 6, 2021
Merged

Conversation

yykamei
Copy link
Owner

@yykamei yykamei commented Jun 6, 2021

This struct is intended for a caller of Finder to specify the correct
starting_point in advance. The correct starting_point means the
path which is valid in terms of character encdoing, and really exists in
a file system; in other words, it can be canonicalized safely.

With this refactoring, each ConsumedDir does not have to call
canonicalize because Finder can get absolute path due to the
canonicalized starting_point.

This struct is intended for a caller of `Finder` to specify the correct
`starting_point` in advance. **The correct `starting_point`** means the
path which is valid in terms of character encdoing, and really exists in
a file system; in other words, it can be `canonicalize`d safely.

With this refactoring, each `ConsumedDir` does not have to call
`canonicalize` because `Finder` can get absolute path due to the
`canonicalize`d `starting_point`.
@yykamei yykamei added the refactor Refactoring, which does not change the program behavior label Jun 6, 2021
@yykamei yykamei enabled auto-merge (squash) June 6, 2021 21:43
@yykamei yykamei merged commit 0e47fdc into main Jun 6, 2021
@yykamei yykamei deleted the add-a-new-struct-starting-point branch June 6, 2021 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactoring, which does not change the program behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant