コード例 #1
0
ファイル: __init__.py プロジェクト: biranchi2018/Malaya
def print_cache(location=None):
    """
    Print cached data, this will print entire cache folder if let location = None
    """
    path = os.path.join(home, location) if location else home
    paths = DisplayablePath.make_tree(Path(path))
    for path in paths:
        print(path.displayable())
コード例 #2
0
ファイル: __init__.py プロジェクト: samsonleegh/Malaya
def print_cache(location=None):
    """
    Print cached data, this will print entire cache folder if let location = None.

    Parameters
    ----------
    location : str, (default=None)
        if location is None, will print entire cache directory.

    """

    from malaya.function import DisplayablePath

    path = os.path.join(home, location) if location else home
    paths = DisplayablePath.make_tree(Path(path))
    for path in paths:
        print(path.displayable())