def create_lock(name):
 lock_path = get_lock_path(name)
 if (not check_lock(lock_path)):
  return touch_file(lock_path)
 else:
  return False

def create_lock ( name ) : lock_path = get_lock_path ( name ) if ( not check_lock ( lock_path ) ) : return touch_file ( lock_path ) else : return False
creates a file in the /locks folder by the given name .