How to manipulate directories and files on the new SugarCRM version.

Hello everyone!

Previously on my codes, I working with the local files and local directories using some like this:

$function['mkdir'] = mkdir;
$function['fopen'] = fopen;
$function['unlink'] = unlink;
...

$function['mkdir'](<new_directory_path>);
$function['fopen'](<file_path>);
$function['unlink'](<path_file>);

But since the SugarCRM update to the 12.x version, this method to write functions (that previously been on the blacklist) now doesn't works too.

So, I would like to know, now how could I work with directories and files?
I have the knowledge that now 'ExternalResourceClient' is used to it; but I don't find the enough information to make this.

Someone has some documentation or some code example to work with this cases?

- Create, delete and rename local directories.
- Create, upload, rename, update and read local files.

For example, I have a customization to create CSV files within a directory placed on to the 'Upload' directory, but with the new functionallity I don't know how could I make this.

Thank you so much!

Regards.

Parents Reply Children
No Data