minor changes

This commit is contained in:
2025-07-27 22:28:21 +02:00
parent ce4ef44dcd
commit 571a1c5c39
2 changed files with 10 additions and 3 deletions

View File

@@ -467,6 +467,9 @@ String DirectoryNode::getCurrentPlayingFilePath() const
if (currentPlaying != nullptr)
{
String filePath = name;
if (!filePath.startsWith("/")) {
filePath = "/"+filePath;
}
if (!filePath.endsWith("/"))
{
filePath += "/";