|
|
|
@ -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 |
|
|
|
|
|
|
|
|
|