Permalink
Browse files

corrected slash direction for windows

the string replace call on the next line would fail when used on a
windows box, as the srcFileName and srcDir would have inconsistent
slash direction.
  • Loading branch information...
1 parent a7093be commit 6611b7ccbc7bdf3165d72959246d8ea56edb82a4 @sammyt sammyt committed Apr 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 vololib/volo/file.js
View
2 vololib/volo/file.js
@@ -204,7 +204,7 @@ define(function (require) {
copiedFiles = [], i, srcFileName, destFileName;
for (i = 0; i < fileNames.length; i++) {
- srcFileName = fileNames[i];
+ srcFileName = frontSlash(fileNames[i]);
destFileName = srcFileName.replace(srcDir, destDir);
if (file.copyFile(srcFileName, destFileName, onlyCopyNew)) {

0 comments on commit 6611b7c

Please sign in to comment.