mirror of
https://github.com/tjboldt/ProDOS-Utilities.git
synced 2024-12-01 01:49:59 +00:00
Fix catalog for 80 column display
This commit is contained in:
parent
d53977a1a3
commit
4a8be2c327
@ -133,7 +133,7 @@ func DumpBlock(buffer []byte) {
|
|||||||
|
|
||||||
func DumpDirectory(blocksFree int, totalBlocks int, path string, fileEntries []FileEntry) {
|
func DumpDirectory(blocksFree int, totalBlocks int, path string, fileEntries []FileEntry) {
|
||||||
fmt.Printf("%s\n\n", path)
|
fmt.Printf("%s\n\n", path)
|
||||||
fmt.Printf(" NAME TYPE BLOCKS MODIFIED CREATED ENDFILE SUBTYPE\n\n")
|
fmt.Printf("NAME TYPE BLOCKS MODIFIED CREATED ENDFILE SUBTYPE\n\n")
|
||||||
|
|
||||||
for i := 0; i < len(fileEntries); i++ {
|
for i := 0; i < len(fileEntries); i++ {
|
||||||
var zeroTime = time.Time{}
|
var zeroTime = time.Time{}
|
||||||
@ -148,7 +148,7 @@ func DumpDirectory(blocksFree int, totalBlocks int, path string, fileEntries []F
|
|||||||
} else {
|
} else {
|
||||||
createdTime = TimeToString(fileEntries[i].CreationTime)
|
createdTime = TimeToString(fileEntries[i].CreationTime)
|
||||||
}
|
}
|
||||||
fmt.Printf(" %-15s %s %7d %s %s %8d %8d\n",
|
fmt.Printf("%-15s %s%6d %s %s%8d %8d\n",
|
||||||
fileEntries[i].FileName,
|
fileEntries[i].FileName,
|
||||||
FileTypeToString(fileEntries[i].FileType),
|
FileTypeToString(fileEntries[i].FileType),
|
||||||
fileEntries[i].BlocksUsed,
|
fileEntries[i].BlocksUsed,
|
||||||
|
Loading…
Reference in New Issue
Block a user