externalPath = os.path.join(cwd, components.externalPath)
unglobbed_paths = glob.glob(os.path.expanduser(externalPath))
if not unglobbed_paths:
raise Exception(f"Could not find file at {components.externalPath}")
for ext_path in unglobbed_paths:
if not cls.fileHasInternalPaths(ext_path) or not components.internalPath:
expanded_paths.append(ext_path)
continue
After Change
externalPath = os.path.join(cwd, components.externalPath)
unglobbed_paths = glob.glob(os.path.expanduser(externalPath))
if not unglobbed_paths:
raise FileNotFoundError(externalPath)
for ext_path in unglobbed_paths:
if not cls.fileHasInternalPaths(ext_path) or not components.internalPath:
expanded_paths.append(ext_path)
continue