platypush/plugins/google/drive/__init__.py
def copy(self, file_id: str) -> GoogleDriveFile:
        """
        Create a copy of a file.
        :param file_id: File ID.
        """
        service = self.get_service()
        file = service.files().copy(fileId=file_id).execute()
        return GoogleDriveFile(
            type=file.get('kind').split('#')[1],
            id=file.get('id'),
            name=file.get('name'),
            mime_type=file.get('mimeType'),
        )

        Create a copy of a file.
        :param file_id: File ID.
        
Create a copy of a file.
Create a copy of a file .
def copy(self, file_id: str) -> GoogleDriveFile:
        service = self.get_service()
        file = service.files().copy(fileId=file_id).execute()
        return GoogleDriveFile(
            type=file.get('kind').split('#')[1],
            id=file.get('id'),
            name=file.get('name'),
            mime_type=file.get('mimeType'),
        )
def copy ( self , file_id : str ) -> GoogleDriveFile : service = self . get_service ( ) file = service . files ( ) . copy ( fileId = file_id ) . execute ( ) return GoogleDriveFile ( type = file . get ( 'kind' ) . split ( '#' ) [ 1 ] , id = file . get ( 'id' ) , name = file . get ( 'name' ) , mime_type = file . get ( 'mimeType' ) , )
Create a copy of a file.
Create a copy of a file .
"""
        Create a copy of a file.
        :param file_id: File ID.
        """
self
file_id
str
None