jams.util.expand_filepaths
- jams.util.expand_filepaths(base_dir, rel_paths)[source]
Expand a list of relative paths to a give base directory.
- Parameters:
- base_dirstr
The target base directory
- rel_pathslist (or list-like)
Collection of relative path strings
- Returns:
- expanded_pathslist
rel_paths rooted at base_dir
Examples
>>> jams.util.expand_filepaths('/data', ['audio', 'beat', 'seglab']) ['/data/audio', '/data/beat', '/data/seglab']