gbdx_cloud_harness/services/account_storage_service.py
def upload(self, source_files, s3_folder=None):
        """
        Upload a list of files to a users account location
        :param source_files: list of files to upload, or single file name
        :param s3_folder: the user location to upload to.
        """

        if s3_folder is None:
            folder = self.prefix
        else:
            folder = '%s/%s' % (self.prefix, s3_folder)

        if isinstance(source_files, list):
            for file_tuple in source_files:
                self.__upload_file(file_tuple, folder)
        elif isinstance(source_files, tuple):
            self.__upload_file(source_files, folder)
        else:
            raise ValueError("Source Files must be a tuple or list of tuples: (filename, keyname)")
def upload(self, source_files, s3_folder=None):
        """
        Upload a list of files to a users account location
        :param source_files: list of files to upload, or single file name
        :param s3_folder: the user location to upload to.
        """

        if s3_folder is None:
            folder = self.prefix
        else:
            folder = '%s/%s' % (self.prefix, s3_folder)

        if isinstance(source_files, list):
            for file_tuple in source_files:
                self.__upload_file(file_tuple, folder)
        elif isinstance(source_files, tuple):
            self.__upload_file(source_files, folder)
        else:
            raise ValueError("Source Files must be a tuple or list of tuples: (filename, keyname)")
def upload ( self , source_files , s3_folder = None ) : if s3_folder is None : folder = self . prefix else : folder = '%s/%s' % ( self . prefix , s3_folder ) if isinstance ( source_files , list ) : for file_tuple in source_files : self . __upload_file ( file_tuple , folder ) elif isinstance ( source_files , tuple ) : self . __upload_file ( source_files , folder ) else : raise ValueError ( "Source Files must be a tuple or list of tuples: (filename, keyname)" )
Upload a list of files to a users account location
        :param source_files: list of files to upload, or single file name
        :param s3_folder: the user location to upload to.
Upload a list of files to a users account location : param source_files : list of files to upload or single file name : param s3_folder : the user location to upload to .