You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Case-fix a number of path names - good for lifting references from Windows. Note that if it's ambiguous, it's unspecified which fixed pathname will be chosen.
//Produces output, one per line, on stdout. If no args given, reads lines from stdin.
void casefix(string fn)
{
array(string) path=explode_path(fn);
for (int i=0;i<sizeof(path);++i)
{
string p=combine_path(@path[..i]);
if (file_stat(p)) continue; //Exists in current case, don't change it.