msticpy/data/drivers/local_data_driver.py
def _get_data_paths(self) -> Dict[str, str]:
        """Read files in data paths."""
        data_files = {}
        for path in self._paths:
            for pattern in ["**/*.pkl", "**/*.csv"]:
                found_files = list(Path(path).resolve().glob(pattern))
                data_files.update(
                    {
                        str(file_path.name).casefold(): str(file_path)
                        for file_path in found_files
                        if file_path.is_file()
                    }
                )
        return data_files
Read files in data paths.
Read files in data paths.
Read files in data paths .
def _get_data_paths(self) -> Dict[str, str]:
        data_files = {}
        for path in self._paths:
            for pattern in ["**/*.pkl", "**/*.csv"]:
                found_files = list(Path(path).resolve().glob(pattern))
                data_files.update(
                    {
                        str(file_path.name).casefold(): str(file_path)
                        for file_path in found_files
                        if file_path.is_file()
                    }
                )
        return data_files
def _get_data_paths ( self ) -> Dict [ str , str ] : data_files = { } for path in self . _paths : for pattern in [ "**/*.pkl" , "**/*.csv" ] : found_files = list ( Path ( path ) . resolve ( ) . glob ( pattern ) ) data_files . update ( { str ( file_path . name ) . casefold ( ) : str ( file_path ) for file_path in found_files if file_path . is_file ( ) } ) return data_files
Read files in data paths.
Read files in data paths .
"""Read files in data paths."""
self