コード例 #1
0
ファイル: base_classes.py プロジェクト: optimux/jwst
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
ファイル: base_classes.py プロジェクト: STScI-JWST/jwst
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)