mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	path check
This commit is contained in:
		
							parent
							
								
									3d036d363b
								
							
						
					
					
						commit
						f81faaf9e9
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		|  | @ -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) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 David Kocik
						David Kocik