mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 01:12:11 +08:00 
			
		
		
		
	resolve child path
This commit is contained in:
		| @@ -51,7 +51,7 @@ function Flatten-Directory($name) { | ||||
|     $name = Resolve-Path $name | ||||
|     $moving = "$($name)_moving" | ||||
|     Rename-Item $name -NewName $moving | ||||
|     $child = (Get-Childitem $moving)[0] | ||||
|     $child = Resolve-Path (Get-Childitem $moving)[0] | ||||
|     Write-Verbose "Moving the '$child' directory to '$name'" | ||||
|     Move-Item -Path $child -Destination $name | ||||
|     Remove-Item -Recurse $moving | ||||
|   | ||||
		Reference in New Issue
	
	Block a user