Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

par tool: file inserts only have 3 chars after . Ex: hello.bcpl -> hello.bcp + no directory listing of complete disk #1

Open
petersieg opened this issue Jan 22, 2024 · 1 comment

Comments

@petersieg
Copy link

par tool: file inserts only have 3 chars after . Ex: hello.bcpl -> hello.bcp:

./par -1 /Users/ich/Downloads/test/allgames.dsk -i /Users/ich/Downloads/test/hello.bcpl hello.bcpl -rw
loading disk image /Users/ich/Downloads/test/allgames.dsk
filesystem checked: 35 free pages
inserted /Users/ich/Downloads/test/hello.bcpl as hello.bcpl successfully
saving disk image /Users/ich/Downloads/test/allgames.dsk

result (listed with adar tool):
4431 1730 1 81 hello.bcp

  • no directory listing of complete disk like adar -l <disk_image> tool.

Thx, for this excellent work!

@hsnaves
Copy link
Owner

hsnaves commented Jan 27, 2024

Hi Peter,

As per design, the filename in command line argument is expected to end with a '.' (dot) character. For instance, the correct command line would be:
./par -1 /Users/ich/Downloads/test/allgames.dsk -i /Users/ich/Downloads/test/hello.bcpl hello.bcpl. -rw
Notice the extra dot at the end of hello.bcpl..
I implemented it this way because in the underlying filesystem, all filenames are stored with a dot at the end. But now that you mentioned it, maybe i should automatically append a dot after the user provided filename, to avoid confusion...

In regards to listing a complete disk, there are two options:

  1. You can list the SysDir directory as in ./par -d SysDir. /Users/ich/Downloads/test/allgames.dsk
  2. You can extract all files inside the disk using the scavenge command as in ./par -s /Users/ich/Downloads/test/allgames.dsk. Please note that this will extract all files to the current directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants