文件操作 - testsignals.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/doc/uwsgi-core/tests/testsignals.py
编辑文件内容
import uwsgi # send a raw signal to register with file_monitor subsystem #uwsgi.signal(10, "/tmp/topolino") uwsgi.signal(10, "/tmp") #uwsgi.signal(10, "/root") # send a raw signal to register with timer subsystem uwsgi.signal(11, "3") uwsgi.signal(11, "4") uwsgi.signal(11, "8") def application(e, s): s('200 Ok', [('Content-Type', 'text/html')]) return "<h1>Hello World</h1>"
修改文件时间
将文件时间修改为当前时间的前一年
删除文件