def get_files_by_path(path):
if os.path.isfile(path):<EOL><INDENT>return [path]<EOL><DEDENT>if os.path.isdir(path):<EOL><INDENT>return get_morph_files(path)<EOL><DEDENT>raise IOError('<STR_LIT>' % path)<EOL>
Get a file or set of files from a file path

    Return list of files with path