(self, target_url, full_filename)
Upload file into local file storage.

        :param str target_url: target URL
        :param str full_filename: path

        :returns: whether successful or not
        :rtype: bool
Upload file into local file storage.
Upload file into local file storage .
def do_upload(self, target_url, full_filename):
        """Upload file into local file storage.

        :param str target_url: target URL
        :param str full_filename: path

        :returns: whether successful or not
        :rtype: bool
        """
        os.makedirs(os.path.dirname(target_url), exist_ok=True)

        try:
            if full_filename != target_url:
                shutil.copyfile(full_filename, target_url)
            else:
                logger.debug('Local Store: Same File, No Upload')

            return True
        except Exception as e:
            logger.error(str(e))
            return False
def do_upload ( self , target_url , full_filename ) : os . makedirs ( os . path . dirname ( target_url ) , exist_ok = True ) try : if full_filename != target_url : shutil . copyfile ( full_filename , target_url ) else : logger . debug ( 'Local Store: Same File, No Upload' ) return True except Exception as e : logger . error ( str ( e ) ) return False