| 
				
			 | 
			
			 | 
			@@ -31,6 +31,7 @@ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			#include <unistd.h>
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			#include <sys/types.h>
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			#include <cstdio>
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			#include <cstdlib>
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			#include <cstring>
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			#include <cerrno>
 | 
		
		
	
	
		
			
			| 
				
			 | 
			
			 | 
			@@ -45,6 +46,21 @@ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			namespace CodeDweller {
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  void FileOps::moveFile(std::string const &from, std::string const &to) {
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			#ifdef _WIN32
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    if (MoveFile(from.c_str(), to.c_str()) == 0) {
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			#else
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    if (rename(from.c_str(), to.c_str()) != 0) {
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			#endif
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      throw std::runtime_error("Error moving file \"" + from +
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                               "\" to file \"" + to + "\":  " +
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                               FileReference::getErrorText());
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    }
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  }
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			#ifdef _WIN32
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  char const FilePath::DirectorySeparator = '\\';
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			#else
 |