Skip to content

Commit

Permalink
Merge pull request #5 from will-moore/ignore_chunks
Browse files Browse the repository at this point in the history
Ignore chunks
  • Loading branch information
joshmoore authored Aug 28, 2023
2 parents 6ec1b13 + bae1ed1 commit 4c1e32b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/omero_mkngff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,12 @@ def walk(self, path: Path) -> Generator[Tuple[Path, str, str], None, None]:
if not p.is_dir():
yield (p.parent, p.name, "application/octet-stream")
else:
yield (p.parent, p.name, "Directory")
yield from self.walk(p)
if (p / ".zarray").exists() or (p / ".zgroup").exists():
yield (p.parent, p.name, "Directory")
yield from self.walk(p)
else:
# Chunk directory
continue

def get_uuid(self, args: Namespace) -> str:
from omero.grid import ManagedRepositoryPrx as MRepo
Expand Down

0 comments on commit 4c1e32b

Please sign in to comment.