[17:56:25] Cameron Aubuchon: app is Freestone Slide Conversion
[17:56:28] Cameron Aubuchon: key is 09eada5b-5157-474f-a4d3-0a9241a190cd
[17:56:42] Cameron Aubuchon: and i’m using the PHP sdk
[17:57:15] Cameron Aubuchon:
$conv = new Folder();
$cnt = 0;
foreach ($conv->GetFilesList() as $file) {
if ($file->IsFolder != 1) {
$cnt ++;
}
if ($cnt > 1) die();
}
[17:57:27] Cameron Aubuchon: sorry, bad paste
[17:57:39] Cameron Aubuchon: $conv = new Folder();
$cnt = 0;
foreach ($conv->GetFilesList() as $file) {
if ($file->IsFolder != 1) {
$conv->DeleteFile($file->Path);
$cnt ++;
}
if ($cnt > 1) die();
}
[17:58:26] Cameron Aubuchon: that should delete the first file returned by the getFilesList method
[17:58:34] Cameron Aubuchon: $conv->DeleteFile returns false
Submitted from: http://saaspose.com/contact-us