logo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Readme
Files and versions

15 lines
348 B

from glob import glob
from towhee.operator.base import PyOperator
class PathGlob(PyOperator):
"""
Wrapper of glob.glob
"""
def __init__(self, pathname, *, recursive=False):
self._pattern = pathname
self._recursive = recursive
def __call__(self):
return glob(self._pattern, recursive=self._recursive)