Skip to content

File paths copied from within the app contain the wrong slash #6100

@EngineerOfChaos

Description

@EngineerOfChaos

Please confirm the following.

  • I checked the existing issues for duplicate problems
  • I have tried resolving the issue using the support portal
  • I have ensured my Modrinth App installation is up to date

What version of the Modrinth App are you using?

0.13.17

What operating systems are you seeing the problem on?

Windows

Describe the bug

When pressing the "Copy full path" button of a file or folder in the Files tab of an instance, modrinth will use forward slashes instead of back slashes for the file path inside the instance.

Examples:
C:\Users<user>\AppData\Roaming\ModrinthApp\profiles\ivory/crash-reports
C:\Users<user>\AppData\Roaming\ModrinthApp\profiles\ivory/options.txt

Steps to reproduce

  1. Open any instance
  2. Click on the Files tab
  3. Right click on a folder or file (or click on the three dots under Actions)
  4. Click "Copy Full Path"

Expected behavior

The file path that is copied should only have backslashes, rather than a mix of backslashes and forward slashes.

Additional context

This can cause issues when trying to use the copied path for things, for example the Windows file extraction destination cannot recognise this format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appRelates to Modrinth App

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions