예제 #1
0
def _data_glob_local(*glob_parts):
    """Perform a glob on the local path

    Parameters
    ----------
    glob_parts: (path-like,[...])
        List of components that will be built into a single path

    Returns
    -------
    file_paths: [str[, ...]]
        Full file paths that match the glob criterion
    """
    full_glob = Path().joinpath(*glob_parts)
    return _sys_glob(str(full_glob))
예제 #2
0
def _data_glob_local(path, glob='*'):
    """Perform a glob on the local path

    Parameters
    ----------
    path: File path-like object
        The path to check.

    glob: str
        The file name match criterion

    Returns
    -------
    file_paths: [str[, ...]]
        Full file paths that match the glob criterion
    """
    full_glob = op.join(path, glob)
    return _sys_glob(full_glob)
예제 #3
0
def _data_glob_local(path, glob='*'):
    """Perform a glob on the local path

    Parameters
    ----------
    path: File path-like object
        The path to check.

    glob: str
        The file name match criterion

    Returns
    -------
    file_paths: [str[, ...]]
        Full file paths that match the glob criterion
    """
    full_glob = op.join(path, glob)
    return _sys_glob(full_glob)