Skip to content
This repository
Browse code

absolute paths

  • Loading branch information...
commit 4b7c8366c32817b9de77c8222b2af3bda5dd57b3 1 parent 20ae6cc
Oliver Wong authored June 05, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  lib/supervisor.js
6  lib/supervisor.js
@@ -100,7 +100,7 @@ function run (args) {
100 100
   if (ignore) {
101 101
     var ignoreItems = ignore.split(',');
102 102
     ignoreItems.forEach(function (ignoreItem) {
103  
-      ignoreItem = path.normalize(ignoreItem + '/');
  103
+      ignoreItem = path.resolve(ignoreItem + '/');
104 104
       ignoredPaths[ignoreItem] = true;
105 105
       util.debug("Ignoring directory '" + ignoreItem + "'.");
106 106
     });
@@ -108,7 +108,7 @@ function run (args) {
108 108
 
109 109
   var watchItems = watch.split(',');
110 110
   watchItems.forEach(function (watchItem) {
111  
-    watchItem = path.normalize(watchItem);
  111
+    watchItem = path.resolve(watchItem);
112 112
     util.debug("Watching directory '" + watchItem + "' for changes.");
113 113
     findAllWatchFiles(watchItem, function(f) {
114 114
       watchGivenFile( f, poll_interval );
@@ -217,7 +217,7 @@ function crashWin (event, filename) {
217 217
   var shouldCrash = true;
218 218
   if( event === 'change' ) {
219 219
     if (filename) {
220  
-      filename = path.normalize(filename);
  220
+      filename = path.resolve(filename);
221 221
       Object.keys(ignoredPaths).forEach(function (ignorePath) {
222 222
         if ( filename.indexOf(ignorePath) === 0 ) {
223 223
           shouldCrash = false;

0 notes on commit 4b7c836

Please sign in to comment.
Something went wrong with that request. Please try again.