Copy doesn't work when using module loader

I am trying to import files using module loader.

I get the error "Failed to copy cache/upgrades/temp/oY3Srq/Files/custom/Extension/application/Ext/EntryPointRegistry/UpdateClassTimeFields.php to custom/Extension/application/Ext/EntryPointRegistry/UpdateClassTimeFields.php"

I have already checked out.

https://support.sugarcrm.com/Knowledge_Base/Platform_Management/Setting_Default_File_Permissions_and_Ownership_Via_config.php/index.html

and other permission related solutions, but they don't work.

<code>

$installdefs = array (
'id' => 'CE_Customizations',

'copy' => array(
array(
'from' => '<basepath>/Files/custom/Extension/application/Ext/EntryPointRegistry/UpdateClassTimeFields.php',
'to' => 'custom/Extension/application/Ext/EntryPointRegistry/UpdateClassTimeFields.php',
),
)
);

</code>