Skip to content

Commit

Permalink
rervert glob pattern and create subfolders
Browse files Browse the repository at this point in the history
  • Loading branch information
denniswittich committed Mar 4, 2025
1 parent 30005cd commit 9214b6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions learning_loop_node/detector/outbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def __init__(self) -> None:
self.log = logging.getLogger()
self.path = f'{GLOBALS.data_folder}/outbox'
os.makedirs(self.path, exist_ok=True)
os.makedirs(f'{self.path}/priority', exist_ok=True)
os.makedirs(f'{self.path}/normal', exist_ok=True)

self.log = logging.getLogger()
host = environment_reader.host()
Expand Down
2 changes: 1 addition & 1 deletion learning_loop_node/tests/detector/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async def sio_client() -> AsyncGenerator[socketio.AsyncClient, None]:


def get_outbox_files(outbox: Outbox):
files = glob(f'{outbox.path}/**/**/*', recursive=True)
files = glob(f'{outbox.path}/**/*', recursive=True)
return [file for file in files if os.path.isfile(file)]


Expand Down

0 comments on commit 9214b6e

Please sign in to comment.