(self, source: str, dest: str, **kwargs: base.CommonArgs)
return self._client.request('/files/cp', args, **kwargs)
Creates a copy of a file within the MFS
		
		Due to the nature of IPFS this will not actually involve any copying of
		the file's content. Instead, a new link will be added to the directory
		containing *dest* referencing the CID of *source* – this is very similar
		to how hard links to read-only files work in classical filesystems.
		
		.. code-block:: python
		
			>>> client.files.ls("/")
			{'Entries': [
				{'Size': 0, 'Hash': '', 'Name': 'Software', 'Type': 0},
				{'Size': 0, 'Hash': '', 'Name': 'test', 'Type': 0}
			]}
			>>> client.files.cp("/test", "/bla")
			>>> client.files.ls("/")
			{'Entries': [
				{'Size': 0, 'Hash': '', 'Name': 'Software', 'Type': 0},
				{'Size': 0, 'Hash': '', 'Name': 'bla', 'Type': 0},
				{'Size': 0, 'Hash': '', 'Name': 'test', 'Type': 0}
			]}
		
		Parameters
		----------
		source
			Filepath within the MFS to copy from
		dest
			Destination filepath within the MFS to which the file will be
			copied/linked to
Creates a copy of a file within the MFS
		
		Due to the nature of IPFS this will not actually involve any copying of
		the file's content. Instead, a new link will be added to the directory
		containing *dest* referencing the CID of *source* – this is very similar
		to how hard links to read-only files work in classical filesystems.
		
		.. code-block:: python
		
			>>> client.files.ls("/")
			{'Entries': [
				{'Size': 0, 'Hash': '', 'Name': 'Software', 'Type': 0},
				{'Size': 0, 'Hash': '', 'Name': 'test', 'Type': 0}
			]}
			>>> client.files.cp("/test", "/bla")
			>>> client.files.ls("/")
			{'Entries': [
				{'Size': 0, 'Hash': '', 'Name': 'Software', 'Type': 0},
				{'Size': 0, 'Hash': '', 'Name': 'bla', 'Type': 0},
				{'Size': 0, 'Hash': '', 'Name': 'test', 'Type': 0}
			]}
		
		Parameters
		----------
		source
			Filepath within the MFS to copy from
		dest
			Destination filepath within the MFS to which the file will be
			copied/linked to
Creates a copy of a file within the MFS Due to the nature of IPFS this will not actually involve any copying of the file s content . Instead a new link will be added to the directory containing * dest * referencing the CID of * source * – this is very similar to how hard links to read - only files work in classical filesystems . .. code - block :: python >>> client . files . ls ( / ) { Entries : [ { Size : 0 Hash : Name : Software Type : 0 } { Size : 0 Hash : Name : test Type : 0 } ] } >>> client . files . cp ( / test / bla ) >>> client . files . ls ( / ) { Entries : [ { Size : 0 Hash : Name : Software Type : 0 } { Size : 0 Hash : Name : bla Type : 0 } { Size : 0 Hash : Name : test Type : 0 } ] } Parameters ---------- source Filepath within the MFS to copy from dest Destination filepath within the MFS to which the file will be copied / linked to
def cp(self, source: str, dest: str, **kwargs: base.CommonArgs):
		"""Creates a copy of a file within the MFS
		
		Due to the nature of IPFS this will not actually involve any copying of
		the file's content. Instead, a new link will be added to the directory
		containing *dest* referencing the CID of *source* – this is very similar
		to how hard links to read-only files work in classical filesystems.
		
		.. code-block:: python
		
			>>> client.files.ls("/")
			{'Entries': [
				{'Size': 0, 'Hash': '', 'Name': 'Software', 'Type': 0},
				{'Size': 0, 'Hash': '', 'Name': 'test', 'Type': 0}
			]}
			>>> client.files.cp("/test", "/bla")
			>>> client.files.ls("/")
			{'Entries': [
				{'Size': 0, 'Hash': '', 'Name': 'Software', 'Type': 0},
				{'Size': 0, 'Hash': '', 'Name': 'bla', 'Type': 0},
				{'Size': 0, 'Hash': '', 'Name': 'test', 'Type': 0}
			]}
		
		Parameters
		----------
		source
			Filepath within the MFS to copy from
		dest
			Destination filepath within the MFS to which the file will be
			copied/linked to
		"""
		args = (source, dest)
		return self._client.request('/files/cp', args, **kwargs)
def cp ( self , source : str , dest : str , * * kwargs : base . CommonArgs ) : args = ( source , dest ) return self . _client . request ( '/files/cp' , args , * * kwargs )