from glob import glob


def get_notebooks(file_dir):
    """ Returns all notebooks in a directory. """

    
    notebooks = []
    if isinstance(file_dir, str):
        notebooks = glob(file_dir + '*.ipynb')
    if len(notebooks) == 0:
        print('WARNING: No files found in directory.')
        return notebooks
    return sorted(notebooks)