Did I find the right examples for you? yes no

All Samples(5)  |  Call(2)  |  Derive(0)  |  Import(3)

        def touch(fname, times=None):
    with file(fname, 'a'):
        os.utime(fname, times)
        


src/c/o/confine-controller-0.10.5/controller/apps/mgmtnetworks/tinc/tasks.py   confine-controller(Download)
 
from controller.utils import LockFile
from controller.utils.system import run, touch
 
from .settings import TINC_NET_NAME, TINC_TINCD_ROOT, TINC_TINCD_BIN, TINC_TINCD_SEND_HUP
    dirtyfile = os.path.join(hosts_path, '.dirty')
    now = time.time()
    touch(dirtyfile, times=(now, now))
 
    # File-based lock mechanism to prevent concurrency problems

src/c/o/confine-controller-0.10.5/controller/utils/options.py   confine-controller(Download)
from controller.core.exceptions import OperationLocked
from controller.utils.paths import get_project_root
from controller.utils.system import run, touch
 
 
            if time.time()-lock_time < self.expire:
                return False
        touch(self.lockfile)
        return True
 

src/c/o/confine-controller-0.10.5/controller/apps/monitor/management/commands/monitorlocalsystem.py   confine-controller(Download)
from django.core.management.base import BaseCommand
 
from controller.utils.system import touch
 
from monitor import settings