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

[HOW] How to create a subdirectory if nonexistent in current path? #493

Closed
poodle-dog opened this issue Sep 8, 2023 · 2 comments
Closed
Assignees
Labels
question This is just a question, not a problem

Comments

@poodle-dog
Copy link

poodle-dog commented Sep 8, 2023

What do you want to achieve?
I would like to figure out a way for kibot to create a directory, releases/ in the working directory if none exists.

I use a predefined tree structure for my kibot-generated fabpacks. Kibot will fail to run if there is no releases/ subdirectory already in existence. This has tripped up some of my coworkers with cryptic errors.

Do you have some PCB/Schematic to use as example?
how-2-mcu.tar.gz

Delete the releases/ directory of that zip, and the subsequent kibot run should fail.

Do you have some configuration file (.kibot.yaml) that you are using?

Yes, the YAML I use is here: https://github.com/poodle-dog/kibot-cfg

Environment (please complete the following information):
Where are you running KiBot:

  • Using a desktop system? Which OS, distro and version?

Running kibot as a manual system in Ubuntu 20.04.

Additional context
None at this time - happy to provide more if needed.

@poodle-dog poodle-dog added the question This is just a question, not a problem label Sep 8, 2023
@set-soft
Copy link
Member

set-soft commented Sep 8, 2023

Hi @poodle-dog !

The solution is simple, you have a misleading config where you say:

  - name: 'zip_asm'
    dir: fab/
    options:
      output: '../releases/staging/fabpack_%p_turnkey_%D_%T.zip'

Here you ask for a dir called fab, but you really need releases/staging/.

You can just tell KiBot what do you want to get:

  - name: 'zip_asm'
    dir: releases/staging/
    options:
      output: 'fabpack_%p_turnkey_%D_%T.zip'

Even when KiBot allows subdirs in the output field you should use it only when you really know this is ok.

@set-soft set-soft closed this as completed Sep 8, 2023
set-soft added a commit that referenced this issue Sep 8, 2023
@poodle-dog
Copy link
Author

Worked like a charm.

Thanks a ton for your help, and all of your great work on this project, @set-soft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is just a question, not a problem
Projects
None yet
Development

No branches or pull requests

2 participants