Distinguish between ShaFile.from_file and ShaFile.from_path.