文件操作 - protect.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/Acronis/PyTools/commands/protect.py
编辑文件内容
import acrort import acrobind.protection def deploy(*args, **kw): ctx = acrort.remoting.CommandContext(*args, **kw) result = acrobind.protection.deploy_plan(ctx.argument, ctx.connection) return result def protect_now(*args, **kw): ctx = acrort.remoting.CommandContext(*args, **kw) result = acrobind.protection.protect_now(ctx.argument, ctx.connection) return result
修改文件时间
将文件时间修改为当前时间的前一年
删除文件