[FileBackend] Added some basic directory functions.
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 5 Apr 2012 05:56:08 +0000 (22:56 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 22 Apr 2012 04:33:41 +0000 (21:33 -0700)
commitdd5326ccf12e526fcfac22a0943baffe52942579
tree4876e901a536557847dea1b9b95e1e5e0c65562e
parent8b73ea5f8ebe5e6da5d5e5f58363ad55cf2935aa
[FileBackend] Added some basic directory functions.

* Added directoryExists() function to check if a dir exists.
* Added getDirectoryList() and getTopDirectoryList() functions to list out subdirs.
* Added getTopFileList() function to list out immediate files in a dir. This wraps getFileList(), which was modified.

Change-Id: I087835f40d76c41f5d6af55b9a34a51e0f44a675
includes/AutoLoader.php
includes/filerepo/backend/FSFileBackend.php
includes/filerepo/backend/FileBackend.php
includes/filerepo/backend/FileBackendMultiWrite.php
includes/filerepo/backend/FileBackendStore.php
includes/filerepo/backend/SwiftFileBackend.php
tests/phpunit/includes/filerepo/FileBackendTest.php