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
							
								
									f82bf0d495
								
							
						
					
					
						commit
						d2ef01990b
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -254,13 +254,13 @@ void RemovableDriveManager::eject_drive(const std::string &path) | |||
|             { | ||||
|             	if(correct_path[i]==' ') | ||||
|             	{ | ||||
|             		correct_path = correct_path.insert(i,"\\"); | ||||
|             		correct_path = correct_path.insert(i,1,'\\'); | ||||
|             		i++; | ||||
|             	} | ||||
|             } | ||||
|             std::cout<<"Ejecting "<<(*it).name<<" from "<< (*it).path<<"\n"; | ||||
|             std::cout<<"Ejecting "<<(*it).name<<" from "<< correct_path<"\n"; | ||||
|             std::string command = "umount "; | ||||
|             command += (*it).path; | ||||
|             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