Skip to content

fix: Replace ToWindowsPath with ToOSPath#2371

Merged
Eideren merged 1 commit into
stride3d:masterfrom
Jklawreszuk:ToOSPath
Jul 6, 2024
Merged

fix: Replace ToWindowsPath with ToOSPath#2371
Eideren merged 1 commit into
stride3d:masterfrom
Jklawreszuk:ToOSPath

Conversation

@Jklawreszuk

Copy link
Copy Markdown
Collaborator

PR Details

ToWindowsPath method is obsolete because ToOSPath is more universal and it shouldnt break current codebase.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My change requires a change to the documentation.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have built and run the editor to try this change out.

{
if (Directory.Exists(assetFolder.Path))
inputs.Add(assetFolder.Path.ToWindowsPath() + @"\**\*.*");
inputs.Add(new UFile(assetFolder.Path + @"\**\*.*").ToOSPath());

@Eideren Eideren Jul 6, 2024

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks like the windows test failed, probably from this particular path ?

@Jklawreszuk Jklawreszuk Jul 6, 2024

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Looks like path concatenation was incorrect (path from test: "../sources/engine/Stride.Shaders.Tests/GameAssets\**\*.*" - incorrect slashes). I adjusted code to replace wrong slashes. Hope It didnt look too hacky 😬

@Eideren Eideren merged commit d49ca78 into stride3d:master Jul 6, 2024
@Eideren

Eideren commented Jul 6, 2024

Copy link
Copy Markdown
Collaborator

Thanks !

@Jklawreszuk Jklawreszuk deleted the ToOSPath branch July 7, 2024 09:07
@Jklawreszuk Jklawreszuk restored the ToOSPath branch July 9, 2024 10:37
@Jklawreszuk Jklawreszuk deleted the ToOSPath branch July 9, 2024 10:37
Jklawreszuk added a commit to Jklawreszuk/stride that referenced this pull request Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants