def get_paths(directory):
    '''Gets all the paths of non-hidden files in a directory
       and returns a list of those paths.

    Parameters
    ----------
    directory : str
        The directory whose contents you wish to grab.

    Returns
    -------
    paths : List[str]
    '''
    fnames = [os.path.join(directory, f)
              for f in os.listdir(directory)
              if os.path.isfile(os.path.join(directory, f))
              and not f.startswith('.')]
    return fnames
def get_paths ( directory ) : fnames = [ os . path . join ( directory , f ) for f in os . listdir ( directory ) if os . path . isfile ( os . path . join ( directory , f ) ) and not f . startswith ( '.' ) ] return fnames
Gets all the paths of non-hidden files in a directory
       and returns a list of those paths.

    Parameters
    ----------
    directory : str
        The directory whose contents you wish to grab.

    Returns
    -------
    paths : List[str]