mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Merge branch 'dk_copy_file' into master
This commit is contained in:
		
						commit
						921bd59ddb
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -20,6 +20,7 @@ | |||
| #include <glob.h> | ||||
| #include <pwd.h> | ||||
| #include <boost/filesystem.hpp> | ||||
| #include <boost/system/error_code.hpp> | ||||
| #include <boost/filesystem/convenience.hpp> | ||||
| #include <boost/process.hpp> | ||||
| #endif | ||||
|  | @ -187,8 +188,9 @@ namespace search_for_drives_internal | |||
| 		//if not same file system - could be removable drive
 | ||||
| 		if (! compare_filesystem_id(path, parent_path)) { | ||||
| 			//free space
 | ||||
| 			boost::filesystem::space_info si = boost::filesystem::space(path); | ||||
| 			if (si.available != 0) { | ||||
| 			boost::system::error_code ec; | ||||
| 			boost::filesystem::space_info si = boost::filesystem::space(path, ec); | ||||
| 			if (!ec && si.available != 0) { | ||||
| 				//user id
 | ||||
| 				struct stat buf; | ||||
| 				stat(path.c_str(), &buf); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 David Kocik
						David Kocik