src/client/pfs.go
func (c *putFileClient) PutFileSplit(repoName string, commitID string, path string, delimiter pfs.Delimiter, targetFileDatums int64, targetFileBytes int64, headerRecords int64, overwrite bool, reader io.Reader) (_ int, retErr error) {
	writer, err := c.PutFileSplitWriter(repoName, commitID, path, delimiter, targetFileDatums, targetFileBytes, headerRecords, overwrite)
	if err != nil {
		return 0, grpcutil.ScrubGRPC(err)
	}
	defer func() {
		if err := writer.Close(); err != nil && retErr == nil {
			retErr = err
		}
	}()
	buf := grpcutil.GetBuffer()
	defer grpcutil.PutBuffer(buf)
	written, err := io.CopyBuffer(writer, reader, buf)
	return int(written), grpcutil.ScrubGRPC(err)
}
func (c *putFileClient) PutFileSplit(repoName string, commitID string, path string, delimiter pfs.Delimiter, targetFileDatums int64, targetFileBytes int64, headerRecords int64, overwrite bool, reader io.Reader) (_ int, retErr error) {
	writer, err := c.PutFileSplitWriter(repoName, commitID, path, delimiter, targetFileDatums, targetFileBytes, headerRecords, overwrite)
	if err != nil {
		return 0, grpcutil.ScrubGRPC(err)
	}
	defer func() {
		if err := writer.Close(); err != nil && retErr == nil {
			retErr = err
		}
	}()
	buf := grpcutil.GetBuffer()
	defer grpcutil.PutBuffer(buf)
	written, err := io.CopyBuffer(writer, reader, buf)
	return int(written), grpcutil.ScrubGRPC(err)
}
func ( c * putFileClient ) PutFileSplit ( repoName string , commitID string , path string , delimiter pfs . Delimiter , targetFileDatums int64 , targetFileBytes int64 , headerRecords int64 , overwrite bool , reader io . Reader ) ( _ int , retErr error ) { writer , err := c . PutFileSplitWriter ( repoName , commitID , path , delimiter , targetFileDatums , targetFileBytes , headerRecords , overwrite ) if err != nil { return 0 , grpcutil . ScrubGRPC ( err ) } defer func ( ) { if err := writer . Close ( ) ; err != nil && retErr == nil { retErr = err } } ( ) buf := grpcutil . GetBuffer ( ) defer grpcutil . PutBuffer ( buf ) written , err := io . CopyBuffer ( writer , reader , buf ) return int ( written ) , grpcutil . ScrubGRPC ( err ) }
//PutFileSplit writes a file to PFS from a reader
// delimiter is used to tell PFS how to break the input into blocks
PutFileSplit writes a file to PFS from a reader delimiter is used to tell PFS how to break the input into blocks