add checks of the format of the paths in the database
This commit is contained in:
parent
075cb2f756
commit
4c4a5fd670
3 changed files with 40 additions and 5 deletions
|
|
@ -4,7 +4,7 @@ from corrlib import __app_name__
|
|||
|
||||
from .initialization import create
|
||||
from .toml import import_tomls, update_project, reimport_project
|
||||
from .find import find_record, list_projects
|
||||
from .find import find_record, list_projects, list_ensembles
|
||||
from .tools import str2list
|
||||
from .main import update_aliases
|
||||
from .meas_io import drop_cache as mio_drop_cache
|
||||
|
|
@ -56,9 +56,9 @@ def lister(
|
|||
"""
|
||||
if entities in ['ensembles', 'Ensembles','ENSEMBLES']:
|
||||
print("Ensembles:")
|
||||
for item in os.listdir(path / "archive"):
|
||||
if os.path.isdir(path / "archive" / item):
|
||||
print(item)
|
||||
results = list_ensembles(path)
|
||||
for e in results:
|
||||
print(e)
|
||||
elif entities == 'projects':
|
||||
results = list_projects(path)
|
||||
print("Projects:")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue