文件操作 - bootstrap_wrapper.ps1
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3.12/site-packages/ansible/executor/powershell/bootstrap_wrapper.ps1
编辑文件内容
&chcp.com 65001 > $null if ($PSVersionTable.PSVersion -lt [Version]"3.0") { '{"failed":true,"msg":"Ansible requires PowerShell v3.0 or newer"}' exit 1 } $exec_wrapper_str = $input | Out-String $split_parts = $exec_wrapper_str.Split(@("`0`0`0`0"), 2, [StringSplitOptions]::RemoveEmptyEntries) If (-not $split_parts.Length -eq 2) { throw "invalid payload" } Set-Variable -Name json_raw -Value $split_parts[1] $exec_wrapper = [ScriptBlock]::Create($split_parts[0]) &$exec_wrapper
修改文件时间
将文件时间修改为当前时间的前一年
删除文件