path check

This commit is contained in:
David Kocik 2019-12-04 13:13:18 +01:00
parent 4e3eb89d31
commit f82bf0d495

View file

@ -255,6 +255,7 @@ void RemovableDriveManager::eject_drive(const std::string &path)
if(correct_path[i]==' ') if(correct_path[i]==' ')
{ {
correct_path = correct_path.insert(i,"\\"); correct_path = correct_path.insert(i,"\\");
i++;
} }
} }
std::cout<<"Ejecting "<<(*it).name<<" from "<< (*it).path<<"\n"; std::cout<<"Ejecting "<<(*it).name<<" from "<< (*it).path<<"\n";