Skip to content

PathTool.getRelativeFilePath: return empty string instead of null for cross-drive paths - #403

Merged
elharo merged 2 commits into
masterfrom
fix/pathtool-null-empty
Aug 3, 2026
Merged

PathTool.getRelativeFilePath: return empty string instead of null for cross-drive paths#403
elharo merged 2 commits into
masterfrom
fix/pathtool-null-empty

Conversation

@elharo

@elharo elharo commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Fixes #402


@Test
// Keep in sync with testGetRelativeFilePathNonWindows()
// Keep in sync with testGetRelativeFilePathWindows()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this comment was accurate and should not be changed

@elharo
elharo requested a review from olamy July 1, 2026 14:17
@slachiewicz slachiewicz added the bug Something isn't working label Jul 2, 2026
@elharo
elharo requested a review from sparsick July 24, 2026 10:52
@elharo
elharo requested review from desruisseaux and kwin August 1, 2026 16:30

@desruisseaux desruisseaux left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with the context in which this method was used. But it is a deprecated method anyway, so hopefully the method is not widely used and therefore the risk is low.

@elharo
elharo merged commit 6b75749 into master Aug 3, 2026
15 checks passed
@elharo
elharo deleted the fix/pathtool-null-empty branch August 3, 2026 12:15
@github-actions github-actions Bot added this to the 3.5.0 milestone Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PathTool.getRelativeFilePath returns null instead of empty string for cross-drive paths

3 participants