def METHOD_NAME():
    with open(lockFilename, 'w') as lock_file:
        try:
            fcntl.flock(lock_file, fcntl.LOCK_EX | fcntl.LOCK_NB)
        except IOError:
            return
        else:
            pruneFiles()
        finally:
            os.remove(lockFilename)