Skip to content

Commit

Permalink
Merge pull request #290 from GabuTheDev/bm-path-fix
Browse files Browse the repository at this point in the history
Fix: tosu throwing `ENOENT` errors on paths with trailing spaces inside.
  • Loading branch information
KotRikD authored Jan 29, 2025
2 parents d1ea415 + 4dbdb93 commit 9e72190
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/tosu/src/states/beatmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,9 @@ export class BeatmapPP extends AbstractState {
}

const mapPath = path.join(
global.songsFolder,
menu.folder,
menu.filename
global.songsFolder.trim(),
menu.folder.trim(),
menu.filename.trim()
);

try {
Expand Down

0 comments on commit 9e72190

Please sign in to comment.