Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Create FlagFiles (and other?) dir if not present #507

@baxpr

Description

@baxpr

We could be robust to this by at least attempting to create an instance's working dirs if they are missing?

2025-05-07 21:01:08,912 - INFO - dax_manager - loaded 172 records
Traceback (most recent call last):
  File "/panfs/accrepfs.vampire/data/mcr/rocky9/venv/dax/bin/dax", line 232, in <module>
    manager.clean_lockfiles()
  File "/panfs/accrepfs.vampire/data/mcr/rocky9/venv/dax/lib/python3.11/site-packages/dax/dax_manager.py", line 1094, in clean_lockfiles
    lockfiles.clean_lockfiles(self.lock_dir, LOGGER)
  File "/panfs/accrepfs.vampire/data/mcr/rocky9/venv/dax/lib/python3.11/site-packages/dax/lockfiles.py", line 30, in clean_lockfiles
    lock_list = os.listdir(lock_dir)
                ^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/nobackup/vuiisccidev/Spider_Upload_Dir/FlagFiles'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions