mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Fixed redirection
This commit is contained in:
		
							parent
							
								
									2b04eebcab
								
							
						
					
					
						commit
						d07ca171f9
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -56,7 +56,8 @@ function __readdirSync_fix(path)
 | 
			
		|||
    var sysnative = false;
 | 
			
		||||
    pathstr = require('fs')._fixwinpath(path);
 | 
			
		||||
    if (pathstr.split('\\*').join('').toLowerCase() == process.env['windir'].toLowerCase()) { sysnative = true; }
 | 
			
		||||
    var ret = __readdirSync_old(path);
 | 
			
		||||
 | 
			
		||||
    var ret = require('fs').__readdirSync_old(path);
 | 
			
		||||
    if (sysnative) { ret.push('sysnative'); }
 | 
			
		||||
    return (ret);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue