@plug.handler()
def start_upload(metadata):
    tmp_file = to_tmp(metadata.path)

    try:
        try:
            os.makedirs(os.path.dirname(tmp_file))
        except OSError:
            pass

        open(tmp_file, 'wb').close()

        if IS_WINDOWS:
            win32api.SetFileAttributes(
                tmp_file, win32con.FILE_ATTRIBUTE_HIDDEN)
    except __HOLE__ as e:
        raise ServiceError(
            u"Error creating file '{}': {}".format(tmp_file, e)
        )
dataset/ETHPy150Open onitu/onitu/drivers/local_storage/onitu_local_storage/local_storage.py/start_upload