From 9c61ea03ca20dc604c7736c653d635f1a7d1873b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Mon, 27 Mar 2023 15:18:04 +0300 Subject: [PATCH] No need to explicitly add a zero dirent --- assemble_floppy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assemble_floppy.py b/assemble_floppy.py index 7ffd355..d8fd9bd 100644 --- a/assemble_floppy.py +++ b/assemble_floppy.py @@ -44,9 +44,9 @@ for file_path in files_paths: dirent = bytes([sectors & 0xff, sectors >> 8]) + file_name extend_padded(directory, dirent_bytes, dirent) -# Add a zero dirent to mark the end of the directory -# (and the start of the consulate) -directory.extend(bytes(dirent_bytes)) +## Add a zero dirent to mark the end of the directory +## (and the start of the consulate) +#directory.extend(bytes(dirent_bytes)) assert len(directory) <= sector_bytes