sknano.core.listdir

sknano.core.listdir(path='.', filterfunc=None, filter_dirnames=False, filter_fnames=False, include_path=False)[source][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

tuple of names of directories and files in path.