import glob import os def directory2filepathes(directory): query = os.path.join( directory, '*.scb', ) filepathes = glob.glob(query, recursive=False) return filepathes
query = '{}/**/*.url'.format(favorites_dir)
recursive=True