mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
path check
This commit is contained in:
@@ -259,7 +259,13 @@ void RemovableDriveManager::eject_drive(const std::string &path)
|
||||
}
|
||||
}
|
||||
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;
|
||||
int err = system(command.c_str());
|
||||
if(err)
|
||||
|
||||
Reference in New Issue
Block a user