@@ -35,7 +35,7 @@ namespace Microsoft.Azure.Commands.DataLakeStore.Models
35
35
public class DataLakeStoreFileSystemClient
36
36
{
37
37
private const decimal MaximumBytesPerDownloadRequest = 32 * 1024 * 1024 ; //32MB
38
- private const decimal bytesPerAppend = 20 * 1024 * 1024 ; //20MB
38
+ private const decimal MaximumBytesPerAppendRequest = 20 * 1024 * 1024 ; //20MB
39
39
40
40
/// <summary>
41
41
/// The lock object
@@ -424,7 +424,7 @@ public void ConcatenateFiles(string destinationPath, string accountName, string[
424
424
425
425
public void CreateFile ( string filePath , string accountName , MemoryStream contents = null , bool overwrite = false )
426
426
{
427
- if ( contents . Length <= bytesPerAppend )
427
+ if ( contents . Length <= MaximumBytesPerAppendRequest )
428
428
{
429
429
// use content-length header for request
430
430
_client . FileSystem . Create ( accountName , filePath , contents , overwrite : overwrite ) ;
@@ -453,7 +453,7 @@ public bool CreateDirectory(string dirPath, string accountName)
453
453
454
454
public void AppendToFile ( string filePath , string accountName , MemoryStream contents )
455
455
{
456
- if ( contents . Length <= bytesPerAppend )
456
+ if ( contents . Length <= MaximumBytesPerAppendRequest )
457
457
{
458
458
// use content-length header for request
459
459
_client . FileSystem . Append ( accountName , filePath , contents ) ;
0 commit comments