Skip to content

Commit b6da293

Browse files
committed
add: add hide file option
1 parent df3c03c commit b6da293

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cli/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ func main() {
387387

388388
if *put != "" {
389389
cmdRunned = true
390-
isError, msg, hint := putFileDsk(d, *put, *dskPath, fileType, loadAddress, execAddress, uint16(*user), false)
390+
isError, msg, hint := putFileDsk(d, *put, *dskPath, fileType, loadAddress, execAddress, uint16(*user), *hidden)
391391
if isError {
392392
exitOnError(msg, hint)
393393
}

dsk/dsk.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,8 +916,7 @@ func (d *DSK) GetNomDir(nomFile string, isHide bool) StDirEntry {
916916
if isHide {
917917
// Bit 7 of byte 1 of the extension is "1" if the file is hidden/system,
918918
// otherwise the file is listed
919-
mask := byte(0b0000001)
920-
e.Nom[1] |= mask
919+
e.Ext[1] |= 0x80
921920
}
922921
return e
923922
}

0 commit comments

Comments
 (0)