hc-sc-ocdo-bdpd / hc-sc-ocdo-bdpd/file-processing

Split Directory class

Open
#167 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
5
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Define a base **Directory** class with get_files and filter, then make separate **report classes** that inherit from it

The current directory class is too big

Proposed usage:

```py
from file_processing import MetadataReport, AnalyticsReport, SimilarityReport

MetadataReport('path/to/dir', **kwargs)
AnalyticsReport(...)
...
```

Proposed implementation

```py
class Directory()
# init
# get_files
# filter
```

```py
class MetadataReport(Directory)
# methods
```

Note: Tests would need minor refactoring

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.