I was trying for 2 days to delete files and folders using the API2->Fileman->fileop function with no success. I was trying like this:
For some reason is not moving anything to .trash forlder.PHP Code:$req = $xmlapi->api2_query($cp_acc, "Fileman", "fileop", array("op"=>"trash", "sourcefiles"=>"/public_html/some_file.php"));
So I started to dig into API1 Fileman function. I had success deleteting files but not directories. Look how I try to remove dirs:
Version 1:
Version 2:PHP Code:
$delete_response = $xmlapi->api1_query($cp_acc, "Fileman", "killdir", array("/public_html/some_dir"));
Version 3:PHP Code:
$delete_response = $xmlapi->api1_query($cp_acc, "Fileman", "killdir", array("dir:public_html/some_dir"));
Has anyone succeeded in removing directories using either API1 or API2 functions?PHP Code:
$delete_response = $xmlapi->api1_query($cp_acc, "Fileman", "killdir", array("dir:/public_html/some_dir"));
Thank you in advance!
IOAN


LinkBack URL
About LinkBacks
Reply With Quote