mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-17 16:36:48 +08:00
path check
This commit is contained in:
parent
9a301ac98d
commit
1f6d2c87b8
@ -259,7 +259,13 @@ void RemovableDriveManager::eject_drive(const std::string &path)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::cout<<"Ejecting "<<(*it).name<<" from "<< correct_path<<"\n";
|
std::cout<<"Ejecting "<<(*it).name<<" from "<< correct_path<<"\n";
|
||||||
std::string command = "umount ";
|
|
||||||
|
std::string command = "";
|
||||||
|
#if __APPLE__
|
||||||
|
command = "diskutil unmount ";
|
||||||
|
#else
|
||||||
|
command = "umount ";
|
||||||
|
#endif
|
||||||
command += correct_path;
|
command += correct_path;
|
||||||
int err = system(command.c_str());
|
int err = system(command.c_str());
|
||||||
if(err)
|
if(err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user