Bug 783676 - Export OS.Path. r=taras
authorDavid Rajchenbach-Teller <dteller@mozilla.com>
Fri, 24 Aug 2012 16:18:16 -0400
changeset 105376 c97a5e95e1aeb2d1d2ba14d9b32935d917279c68
parent 105375 1fd86c175258ec5235ae95212b6225033a78fa74
child 105377 f6ec0707def6e9348e563e84b2945fc74bdfc921
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewerstaras
bugs783676
milestone17.0a1
Bug 783676 - Export OS.Path. r=taras
toolkit/components/osfile/ospath_unix_back.jsm
toolkit/components/osfile/ospath_win_back.jsm
--- a/toolkit/components/osfile/ospath_unix_back.jsm
+++ b/toolkit/components/osfile/ospath_unix_back.jsm
@@ -124,9 +124,11 @@ if (typeof Components != "undefined") {
       */
      split: function split(path) {
        return {
          absolute: path.length && path[0] == "/",
          components: path.split("/")
        };
      }
    };
+
+   exports.OS.Path = exports.OS.Unix.Path;
 }(this));
--- a/toolkit/components/osfile/ospath_win_back.jsm
+++ b/toolkit/components/osfile/ospath_win_back.jsm
@@ -255,9 +255,11 @@ if (typeof Components != "undefined") {
 
     /**
      * Utility function: Remove any leading/trailing backslashes
      * from a string.
      */
     let trimBackslashes = function trimBackslashes(string) {
       return string.replace(/^\\+|\\+$/g,'');
     };
+
+   exports.OS.Path = exports.OS.Win.Path;
 }(this));