We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef1eed9 commit 176fc9aCopy full SHA for 176fc9a
src/LocalFile.php
@@ -119,7 +119,7 @@ public static function split( string $pathToSourceFile,
119
$currentChunkLineCount++;
120
121
if ( $currentChunkLineCount >= $linesPerFile ):
122
- @ftruncate( $newSplitFileHandle, -1 );
+ //@ftruncate( $newSplitFileHandle, -1 );
123
@fclose( $newSplitFileHandle );
124
$currentChunkLineCount = 0;
125
endif;
@@ -131,7 +131,7 @@ public static function split( string $pathToSourceFile,
131
132
// Remove the trailing newline.
133
if ( isset( $newSplitFileHandle ) ):
134
135
@fclose( $newSplitFileHandle ); // Just in case.
136
137
0 commit comments