http://d.puremagic.com/issues/show_bug.cgi?id=7002



--- Comment #6 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2011-11-27 
20:42:34 PST ---
bool isValidFilePath(string filePath)
{
    immutable end = filePath[$-1];
    return (filePath.isValidPath && 
            end != '/' && end != '\\' && 
            filePath.baseName.isValidFilename);
}

But I can't tell if this is 100% right.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to