fixing path in get_file_info() method