@@ -71,7 +71,7 @@ module.exports = flow = function(temporaryFolder){
7171
7272 if ( validateRequest ( chunkNumber , chunkSize , totalSize , identifier , filename ) == 'valid' ) {
7373 var chunkFilename = getChunkFilename ( chunkNumber , identifier ) ;
74- path . exists ( chunkFilename , function ( exists ) {
74+ fs . exists ( chunkFilename , function ( exists ) {
7575 if ( exists ) {
7676 callback ( 'found' , chunkFilename , filename , identifier ) ;
7777 } else {
@@ -115,7 +115,7 @@ module.exports = flow = function(temporaryFolder){
115115 var currentTestChunk = 1 ;
116116 var numberOfChunks = Math . max ( Math . floor ( totalSize / ( chunkSize * 1.0 ) ) , 1 ) ;
117117 var testChunkExists = function ( ) {
118- path . exists ( getChunkFilename ( currentTestChunk , identifier ) , function ( exists ) {
118+ fs . exists ( getChunkFilename ( currentTestChunk , identifier ) , function ( exists ) {
119119 if ( exists ) {
120120 currentTestChunk ++ ;
121121 if ( currentTestChunk > numberOfChunks ) {
@@ -153,7 +153,7 @@ module.exports = flow = function(temporaryFolder){
153153 var pipeChunk = function ( number ) {
154154
155155 var chunkFilename = getChunkFilename ( number , identifier ) ;
156- path . exists ( chunkFilename , function ( exists ) {
156+ fs . exists ( chunkFilename , function ( exists ) {
157157
158158 if ( exists ) {
159159 // If the chunk with the current number exists,
@@ -188,7 +188,7 @@ module.exports = flow = function(temporaryFolder){
188188 var chunkFilename = getChunkFilename ( number , identifier ) ;
189189
190190 //console.log('removing pipeChunkRm ', number, 'chunkFilename', chunkFilename);
191- path . exists ( chunkFilename , function ( exists ) {
191+ fs . exists ( chunkFilename , function ( exists ) {
192192 if ( exists ) {
193193
194194 console . log ( 'exist removing ' , chunkFilename ) ;
0 commit comments