swiftly/cli/put.py
def _create_container(context, path, l_mtime, size):
    """
    Creates container for segments of file with `path`
    """
    new_context = context.copy()
    new_context.input_ = None
    new_context.headers = None
    new_context.query = None
    container = path.split('/', 1)[0] + '_segments'
    cli_put_container(new_context, container)
    prefix = container + '/' + path.split('/', 1)[1]
    prefix = '%s/%s/%s/' % (prefix, l_mtime, size)

    return prefix
def _create_container(context, path, l_mtime, size):
    """
    Creates container for segments of file with `path`
    """
    new_context = context.copy()
    new_context.input_ = None
    new_context.headers = None
    new_context.query = None
    container = path.split('/', 1)[0] + '_segments'
    cli_put_container(new_context, container)
    prefix = container + '/' + path.split('/', 1)[1]
    prefix = '%s/%s/%s/' % (prefix, l_mtime, size)

    return prefix
def _create_container ( context , path , l_mtime , size ) : new_context = context . copy ( ) new_context . input_ = None new_context . headers = None new_context . query = None container = path . split ( '/' , 1 ) [ 0 ] + '_segments' cli_put_container ( new_context , container ) prefix = container + '/' + path . split ( '/' , 1 ) [ 1 ] prefix = '%s/%s/%s/' % ( prefix , l_mtime , size ) return prefix
Creates container for segments of file with `path`
Creates container for segments of file with path