listdir

sknano.core.io.listdir(path='.', filterfunc=None, filter_dirnames=False, filter_fnames=False, include_path=False)[source] [edit on github][source]

Return a tuple of the names of the directories and files in the directory given by path.

Parameters:
  • path (str, optional) –
  • filterfunc (function, optional) –
  • filter_dirnames (bool, optional) –
  • filter_fnames (bool, optional) –
  • include_path (bool, optional) –
Returns:

(dirnames, fnames)tuple of names of directories and files in path.

Return type:

tuple