This article documents the usage of the Cpanel::Fileman::fileop function in relation to the cPanel interface. This tag can be used inside cPanel pages.
Cpanel::Fileman::fileop
Renames, moves, copies or links a file in the user's home directory. This tag is intended for use with javascript and XHTML (AJAX) scripting.
file(s) to be modified.
file(s) to files after modification.
<?cp Fileman::fileop(% % % %,result,^src,^dest,^err) ?>
This example will perform an action to a file based on the form variables passed to the page, and output the result of the operation, the source and destination files, and any errors, if applicable.
Copyright 2006 cPanel Inc.