@@ -71,7 +71,7 @@ module.exports = flow = function(temporaryFolder){
71
71
72
72
if ( validateRequest ( chunkNumber , chunkSize , totalSize , identifier , filename ) == 'valid' ) {
73
73
var chunkFilename = getChunkFilename ( chunkNumber , identifier ) ;
74
- path . exists ( chunkFilename , function ( exists ) {
74
+ fs . exists ( chunkFilename , function ( exists ) {
75
75
if ( exists ) {
76
76
callback ( 'found' , chunkFilename , filename , identifier ) ;
77
77
} else {
@@ -115,7 +115,7 @@ module.exports = flow = function(temporaryFolder){
115
115
var currentTestChunk = 1 ;
116
116
var numberOfChunks = Math . max ( Math . floor ( totalSize / ( chunkSize * 1.0 ) ) , 1 ) ;
117
117
var testChunkExists = function ( ) {
118
- path . exists ( getChunkFilename ( currentTestChunk , identifier ) , function ( exists ) {
118
+ fs . exists ( getChunkFilename ( currentTestChunk , identifier ) , function ( exists ) {
119
119
if ( exists ) {
120
120
currentTestChunk ++ ;
121
121
if ( currentTestChunk > numberOfChunks ) {
@@ -153,7 +153,7 @@ module.exports = flow = function(temporaryFolder){
153
153
var pipeChunk = function ( number ) {
154
154
155
155
var chunkFilename = getChunkFilename ( number , identifier ) ;
156
- path . exists ( chunkFilename , function ( exists ) {
156
+ fs . exists ( chunkFilename , function ( exists ) {
157
157
158
158
if ( exists ) {
159
159
// If the chunk with the current number exists,
@@ -188,7 +188,7 @@ module.exports = flow = function(temporaryFolder){
188
188
var chunkFilename = getChunkFilename ( number , identifier ) ;
189
189
190
190
//console.log('removing pipeChunkRm ', number, 'chunkFilename', chunkFilename);
191
- path . exists ( chunkFilename , function ( exists ) {
191
+ fs . exists ( chunkFilename , function ( exists ) {
192
192
if ( exists ) {
193
193
194
194
console . log ( 'exist removing ' , chunkFilename ) ;
0 commit comments