mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-11-01 01:42:17 +08:00 
			
		
		
		
	add verbose message for flatten directory
This commit is contained in:
		| @@ -49,6 +49,7 @@ function Create-Archive($source, $target, $params) { | ||||
| # Flatten it instead | ||||
| function Flatten-Directory($name) { | ||||
|     $child = (Get-Childitem $name)[0] | ||||
|     Write-Verbose "Moving the '$child' directory's content to '$name'" | ||||
|     Rename-Item $name -NewName "$($name)_moving" | ||||
|     Move-Item -Path "$($name)_moving\$child" -Destination $name | ||||
|     Remove-Item -Recurse "$($name)_moving" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user