{"action":"closed","issue":{"url":"https://api.github.com/repos/projecthydra/active_fedora/issues/1082","repository_url":"https://api.github.com/repos/projecthydra/active_fedora","labels_url":"https://api.github.com/repos/projecthydra/active_fedora/issues/1082/labels{/name}","comments_url":"https://api.github.com/repos/projecthydra/active_fedora/issues/1082/comments","events_url":"https://api.github.com/repos/projecthydra/active_fedora/issues/1082/events","html_url":"https://github.com/projecthydra/active_fedora/issues/1082","id":155495607,"number":1082,"title":"Missing an ActiveFedora::File#content? method","user":{"login":"jeremyf","id":2130,"avatar_url":"https://avatars.githubusercontent.com/u/2130?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyf","html_url":"https://github.com/jeremyf","followers_url":"https://api.github.com/users/jeremyf/followers","following_url":"https://api.github.com/users/jeremyf/following{/other_user}","gists_url":"https://api.github.com/users/jeremyf/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyf/subscriptions","organizations_url":"https://api.github.com/users/jeremyf/orgs","repos_url":"https://api.github.com/users/jeremyf/repos","events_url":"https://api.github.com/users/jeremyf/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/projecthydra/active_fedora/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-18T13:02:03Z","updated_at":"2016-05-18T14:04:07Z","closed_at":"2016-05-18T14:04:07Z","body":"At present, there are guard conditions throughout the Hydra stack (CurationConcerns and Sufia) that appear to ask the equivalent of `if original_file.content`. In the current implementation, this means reading the content from disk, regardless of size. That alone can be an expensive operation.\r\n\r\nWhat options might exist for peaking at the data without a full read so we can ask if the File has content?"}}