Adding API function for copy files and remove the validation of the X-Generator.

#4373 
When syncing a node and the file directory is not writeable we'll throw exception and notify the user he need to fix the files directory permissions.