API CHANGE Removed Filesystem::moverootfilesto()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64401 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-10-16 11:03:45 +00:00
parent 049ab468e3
commit b3f57dd454

View File

@ -43,21 +43,6 @@ class Filesystem extends Object {
} }
} }
public function moverootfilesto() {
if(!Permission::check('ADMIN')) Security::permissionFailure($this);
if($folder = $this->urlParams['ID']) {
$newParent = Folder::findOrMake($folder);
$files = DataObject::get("File", "ClassName != 'Folder' AND ParentID = 0");
foreach($files as $file) {
echo "<li>" , $file->RelativePath;
$file->ParentID = $newParent->ID;
echo " -> " , $file->RelativePath;
}
}
}
/** /**
* Cleanup function to reset all the Filename fields. Visit File/fixfiles to call. * Cleanup function to reset all the Filename fields. Visit File/fixfiles to call.
*/ */