def _get_port_files(local_path, prefix):
        """
        Find files for the local_path and return tuples of filename and keynames
        :param local_path: the local path to search for files
        :param prefix: the S3 prefix for each key name on S3
        """
        source_files = []

        for root, dirs, files in os.walk(local_path, topdown=False):

            for name in files:
                fname = os.path.join(root, name)

                key_name = '%s/%s' % (prefix, fname[len(local_path) + 1:])

                source_files.append((fname, key_name))

        return source_files
def _get_port_files(local_path, prefix):
        """
        Find files for the local_path and return tuples of filename and keynames
        :param local_path: the local path to search for files
        :param prefix: the S3 prefix for each key name on S3
        """
        source_files = []

        for root, dirs, files in os.walk(local_path, topdown=False):

            for name in files:
                fname = os.path.join(root, name)

                key_name = '%s/%s' % (prefix, fname[len(local_path) + 1:])

                source_files.append((fname, key_name))

        return source_files
def _get_port_files ( local_path , prefix ) : source_files = [ ] for root , dirs , files in os . walk ( local_path , topdown = False ) : for name in files : fname = os . path . join ( root , name ) key_name = '%s/%s' % ( prefix , fname [ len ( local_path ) + 1 : ] ) source_files . append ( ( fname , key_name ) ) return source_files
Find files for the local_path and return tuples of filename and keynames
        :param local_path: the local path to search for files
        :param prefix: the S3 prefix for each key name on S3
Find files for the local_path and return tuples of filename and keynames : param local_path : the local path to search for files : param prefix : the S3 prefix for each key name on S3