Open playlist

Hi all. I use Win 10 and several computers for work. I need the playlist to open without errors when transferred from the desktop of one computer to another. I did this:

for(int i = 0; i < songList.size(); i++)
    {
	    File file; //(filePath.getReference(i));
	    
	    String path, ccc;
        path = filePath.getReference(i);
        StringArray arr;
        #if JUCE_WINDOWS
        arr.addTokens (path, "\\", "");
        if (arr[1] == "Users")
        {
            if (arr.size() == 4)
                ccc = File::getSpecialLocation (File::userHomeDirectory).getFullPathName() + "\\" + arr[3];
            else if (arr.size() == 5)
                ccc = File::getSpecialLocation (File::userHomeDirectory).getFullPathName() + "\\" + arr[3] + "\\" + arr[4];
            else if (arr.size() == 6)
                ccc = File::getSpecialLocation (File::userHomeDirectory).getFullPathName() + "\\" + arr[3] + "\\" + arr[4] + "\\" + arr[5];
            else if (arr.size() == 7)
                ccc = File::getSpecialLocation (File::userHomeDirectory).getFullPathName() + "\\" + arr[3] + "\\" + arr[4] + "\\" + arr[5] + "\\" + arr[6];

            filePath.set (i, ccc);
        }
        #endif
        #if JUCE_MAC
        arr.addTokens (path, "/", "");
        if (arr[1] == "Users")
        {
            if (arr.size() == 4)
                ccc = File::getSpecialLocation (File::userHomeDirectory).getFullPathName() + "/" + arr[3];
            else if (arr.size() == 5)
                ccc = File::getSpecialLocation (File::userHomeDirectory).getFullPathName() + "/" + arr[3] + "/" + arr[4];
            else if (arr.size() == 6)
                ccc = File::getSpecialLocation (File::userHomeDirectory).getFullPathName() + "/" + arr[3] + "/" + arr[4] + "/" + arr[5];
            else if (arr.size() == 7)
                ccc = File::getSpecialLocation (File::userHomeDirectory).getFullPathName() + "/" + arr[3] + "/" + arr[4] + "/" + arr[5] + "/" + arr[6];

            filePath.set (i, ccc);
        }
        #endif
        file = filePath.getReference(i);

It works on PC, it works on Mac, but when transferring playlist from PC to Mac it doesn’t work. Yes, and it seems to me that this does not look right. Can anyone tell me how to use it correctly “findFiles”?
Thank you in advance.