文件操作 - sepolgeni18n.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3.6/site-packages/sepolgen/sepolgeni18n.py
编辑文件内容
# Authors: Karl MacMillan <kmacmillan@mentalrootkit.com> # # Copyright (C) 2006 Red Hat # see file 'COPYING' for use and warranty information # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; version 2 only # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # try: import gettext t = gettext.translation( 'selinux-python' ) _ = t.gettext except: def _(str): return str
修改文件时间
将文件时间修改为当前时间的前一年
删除文件