1
Vote

podcasts with invalid path char still failed

description

i found a bug in the generation of the localdir-name. podcasts with a : in the name still failed because it's an invalid char for a foldername but a valid char for the path. i added a new line to remove this char: dir = dir.Replace(':', ' ');
 
it looks this way now:
 
public string GetLocalDir()
    { 
        string dir = Title;
        int i;
        dir = dir.Replace(':', ' ');
        while ((i = dir.IndexOfAny(Path.GetInvalidPathChars())) >= 0)
            dir.Remove(i, 1);
        return Path.Combine(Environment.CurrentDirectory, dir);            
    }
 
perhaps you can fix this in the original source code.

comments