Skip to content

Commit

Permalink
fix: node sample update
Browse files Browse the repository at this point in the history
  • Loading branch information
AidasK committed Nov 13, 2013
1 parent 9b95229 commit 924cb15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions samples/Node.js/flow-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports = flow = function(temporaryFolder){

if(validateRequest(chunkNumber, chunkSize, totalSize, identifier, filename)=='valid') {
var chunkFilename = getChunkFilename(chunkNumber, identifier);
path.exists(chunkFilename, function(exists){
fs.exists(chunkFilename, function(exists){
if(exists){
callback('found', chunkFilename, filename, identifier);
} else {
Expand Down Expand Up @@ -115,7 +115,7 @@ module.exports = flow = function(temporaryFolder){
var currentTestChunk = 1;
var numberOfChunks = Math.max(Math.floor(totalSize/(chunkSize*1.0)), 1);
var testChunkExists = function(){
path.exists(getChunkFilename(currentTestChunk, identifier), function(exists){
fs.exists(getChunkFilename(currentTestChunk, identifier), function(exists){
if(exists){
currentTestChunk++;
if(currentTestChunk>numberOfChunks) {
Expand Down Expand Up @@ -153,7 +153,7 @@ module.exports = flow = function(temporaryFolder){
var pipeChunk = function(number) {

var chunkFilename = getChunkFilename(number, identifier);
path.exists(chunkFilename, function(exists) {
fs.exists(chunkFilename, function(exists) {

if (exists) {
// If the chunk with the current number exists,
Expand Down Expand Up @@ -188,7 +188,7 @@ module.exports = flow = function(temporaryFolder){
var chunkFilename = getChunkFilename(number, identifier);

//console.log('removing pipeChunkRm ', number, 'chunkFilename', chunkFilename);
path.exists(chunkFilename, function(exists) {
fs.exists(chunkFilename, function(exists) {
if (exists) {

console.log('exist removing ', chunkFilename);
Expand Down
2 changes: 1 addition & 1 deletion samples/Node.js/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h3>Demo</h3>
</div>

<div class="flow-drop" ondragenter="jQuery(this).addClass('flow-dragover');" ondragend="jQuery(this).removeClass('flow-dragover');" ondrop="jQuery(this).removeClass('flow-dragover');">
Drop files here to upload or <a class="flow-browse-folder"><u>select folder</u> or <a class="flow-browse"><u>select from your computer</u></a>
Drop files here to upload or <a class="flow-browse-folder"><u>select folder</u></a> or <a class="flow-browse"><u>select from your computer</u></a>
</div>

<div class="flow-progress">
Expand Down

0 comments on commit 924cb15

Please sign in to comment.