[PR #2240] [MERGED] Re-order the path statement to avoid file issues #8864

Closed
opened 2025-12-22 07:10:12 +01:00 by backuprepo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/2240
Author: @anthonylavado
Created: 1/8/2020
Status: Merged
Merged: 1/8/2020
Merged by: @andrewrabert

Base: masterHead: fix-pathfinding


📝 Commits (1)

  • 75f19a7 Re-order the path statement to avoid file issues

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 Emby.Server.Implementations/IO/ManagedFileSystem.cs (+1 -1)

📄 Description

Changes
Re-orders the path statement to achieve the correct result.

Assuming:

string folderPath = "/Volumes/Library/Sample/Music/Playlists/";
string filePath = "../Beethoven/Misc/Moonlight Sonata.mp3";

The result before:
/Volumes/Library/Sample/Music/Playlists/../Beethoven/Misc/Moonlight Sonata.mp3

The new result:
/Volumes/Library/Sample/Music/Beethoven/Misc/Moonlight Sonata.mp3

This returns the output to what it was in 10.3.7 and older, prior to #1168.

Issues
Fixes #1874.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/2240 **Author:** [@anthonylavado](https://github.com/anthonylavado) **Created:** 1/8/2020 **Status:** ✅ Merged **Merged:** 1/8/2020 **Merged by:** [@andrewrabert](https://github.com/andrewrabert) **Base:** `master` ← **Head:** `fix-pathfinding` --- ### 📝 Commits (1) - [`75f19a7`](https://github.com/jellyfin/jellyfin/commit/75f19a762cf4cf769df7545612e68e95bb6905f2) Re-order the path statement to avoid file issues ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Server.Implementations/IO/ManagedFileSystem.cs` (+1 -1) </details> ### 📄 Description **Changes** Re-orders the path statement to achieve the correct result. Assuming: ```c# string folderPath = "/Volumes/Library/Sample/Music/Playlists/"; string filePath = "../Beethoven/Misc/Moonlight Sonata.mp3"; ``` The result before: `/Volumes/Library/Sample/Music/Playlists/../Beethoven/Misc/Moonlight Sonata.mp3` The new result: `/Volumes/Library/Sample/Music/Beethoven/Misc/Moonlight Sonata.mp3` This returns the output to what it was in 10.3.7 and older, prior to #1168. **Issues** Fixes #1874. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
backuprepo 2025-12-22 07:10:12 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#8864
No description provided.