Now `get_by_path' first try to get the file by its traditional path, before query the file.