import asyncio


async def put_file(fs, path, ext):
    """Copy a disk file into the storage, return it's new address."""
    loop = asyncio.get_running_loop()
    addr = await loop.run_in_executor(None, fs.put, path, ext)
    return addr.relpath