HomePhabricator

Support for storing files under SHA-1 names

Authored by aaron.

Description

Support for storing files under SHA-1 names

  • Added a "storageLayout" flag to LocalRepo config (supports "sha1")
  • Added a simple migration script to copy files the SHA1 paths
  • Currently works with img_auth.php + thumb_handler.php for URLs
  • Added visibility to some LocalFile methods
  • Simple tests for the wrapper class.

Co-Authored-By: Gilles Dubuc <gdubuc@wikimedia.org>
Change-Id: Iad46ad669c8ae3c02d10da10c3f7a16fe161663f
Bug: T1210