Skip to content

Not a directory: 'windows/.DS_Store' #280

@robmarkcole

Description

@robmarkcole

On a mac, when working through prepare/ingest/materialize the error below is sometimes raised:

  File "/Users/robin.cole/gitlab/eda-rslearn-soil-moisture-dataset/rslearn/rslearn/dataset/dataset.py", line 120, in load_windows
    for p in group_dir.iterdir():
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/pathlib.py", line 931, in iterdir
    for name in os.listdir(self):
                ^^^^^^^^^^^^^^^^
NotADirectoryError: [Errno 20] Not a directory: 'dataset/windows/.DS_Store'

Could be handled with additional checks

Metadata

Metadata

Assignees

No one assigned

    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