summaryrefslogtreecommitdiff
path: root/core/tests/File_Helper_Test.php
AgeCommit message (Collapse)Author
2008-12-03Rename file::unlink() to dir::unlink(). This creates an API that isBharat Mediratta
clearer about its actions, otherwise we may accidentally blow away an entire hierarchy when we think we're deleting a single file (there's a reason why rm won't let you delete dirs that aren't empty!) Name it "dir" instead of "directory" because apparently "directory" is already reserved. Move the delete call out of Items_Controller and into the model. The model is responsible for keeping state integrity, not the controller.
2008-12-03Add a MY_file class that extends the file helper by creating an unlink ↵Tim Almdal
method that deletes a file or an album directory. Modify Items_Controller::_delete to call this new helper method when deleting an item