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

monobit uses "." in directory name as an extension #40

Open
hackerb9 opened this issue Jan 27, 2025 · 0 comments
Open

monobit uses "." in directory name as an extension #40

hackerb9 opened this issue Jan 27, 2025 · 0 comments

Comments

@hackerb9
Copy link

$ mkdir -p a.b/c/

$ monobit-convert crt8002/crt8002-005.yaff a.b/foo.png
ERROR: Overwriting existing file 'home/rob/hoard-of-bitfonts/a.b' requires -overwrite to be set

$ monobit-convert crt8002/crt8002-005.yaff a.b/c/foo.png
[Succeeds]

$ monobit-convert crt8002/crt8002-005.yaff no.such.dir/foo.png
ERROR: Cannot open subpath 'foo.png' on non-container stream <Stream name='home/rob/hoard-of-bitfonts/no.such.dir' mode='w'>'

$ ls -l no.such.dir
-rw-rw-r-- 1 rob rob 0 Jan 27 12:34 no.such.dir

Monobit should not be looking at the directory name for the file extension.

Notes: Periods are okay in any part of the path except the immediate containing directory. Specifying a non-existent directory creates it, but as a file not a 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

1 participant