pgcontents/api_utils.py
def split_api_filepath(path):
    """
    Split an API file path into directory and name.
    """
    parts = path.rsplit('/', 1)
    if len(parts) == 1:
        name = parts[0]
        dirname = '/'
    else:
        name = parts[1]
        dirname = parts[0] + '/'

    return from_api_dirname(dirname), name
def split_api_filepath(path):
    """
    Split an API file path into directory and name.
    """
    parts = path.rsplit('/', 1)
    if len(parts) == 1:
        name = parts[0]
        dirname = '/'
    else:
        name = parts[1]
        dirname = parts[0] + '/'

    return from_api_dirname(dirname), name
def split_api_filepath ( path ) : parts = path . rsplit ( '/' , 1 ) if len ( parts ) == 1 : name = parts [ 0 ] dirname = '/' else : name = parts [ 1 ] dirname = parts [ 0 ] + '/' return from_api_dirname ( dirname ) , name
Split an API file path into directory and name.
Split an API file path into directory and name .