Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log directory operations #12

Open
tomwrobel opened this issue Apr 17, 2019 · 0 comments
Open

Log directory operations #12

tomwrobel opened this issue Apr 17, 2019 · 0 comments

Comments

@tomwrobel
Copy link

tomwrobel commented Apr 17, 2019

It would be useful to be able to:

  • get a list of files in the logs directory
  • write a file to the logs directory
  • ?delete a file from the logs directory
  • append to a file in the logs directory

This is not terribly high priority, as all of these can be performed adequately with system commands. However, I think there is use (long term) in supporting this via a client call. If nothing else, it means that we can limit the user who are writing into the OCFL root (and digital preservation agents would fall into this category)

Possible commands:

  • ocfl ls {object} -t logs: list all files in the logs directory
  • ocfl cp {object} {file} -t logs: copy a file to the logs directory
  • oclf rm -f {object} {filepath from /logs} -t logs remove a file from the logs directory (if -t logs is not specified, this should be an error)
  • ocfl cp >> {object} {filepath from /logs} -t logs: append to a file in the logs directory
@tomwrobel tomwrobel changed the title logs directory operations Log directory operations Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant