Whats is alternative of sugar_rename in Sugar on Demand ?

Hello,
We are using sugar_rename function in sugar crm package to make a copy of custom file via pre_execute. But in sugar cloud this function is restricted. We need an alternative of sugar_rename for sugar cloud. We know about duplicate_file. duplicate_file is for uploaded file. But we need to make copy of custom file in our package. Please give us any solution.
Thanks!