Skip to content

Store file size in OCFL metadata #116

@rsteph-de

Description

@rsteph-de

There are certain use cases for size metadata in OCFL, e.g.

  • directory listing / file inventory of an object
  • calculation of storage size of an object
  • provided a Content-Length Header when implementing a FileDownloadServlet based on an OCFL backend.

The straight forward implementation would simply treat the size as another fixity
as already mentioned in OCFL Community Extension 0009: Digest Algorithms
(https://ocfl.github.io/extensions/0009-digest-algorithms.html)

I'm going to create a Pull Request based on my current sample code for this.

If we can open the DigestAlgorithmn class for extension (make constructor public) it becomes easier to support other fixity values.

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