if(myfile.length() > 3 && myfile.substr(myfile.length()-4) == "part" &&
subname == myfile.substr( myfile.find("-")+1, myfile.rfind(".")-myfile.find("-")-1 ) ) {
if(myfile.length() > 3 && myfile.substr(myfile.length()-4) == "part" &&
subname == myfile.substr( myfile.find("-")+1, myfile.rfind(".")-myfile.find("-")-1 ) ) {