Code: Select all
function move_items_up_menu($lvl)
{
$paths = sel_files();
foreach($path,$paths)
{
move_item_up($path,$lvl);
}
}
function move_item_up($path,$lvl) // $lvl = -3 => 1 Level Up
{
$name = gpc($path, "name");
$path_n = gpc($path, "component", $lvl, 1);
moveto $path_n , $path, , 2, 1, 2;
}
via drag and drop 1000s of files are moved instantly , why is that so ?
and how can i archieve the same via script ?