(path)
| 121 | * @return {String} the path with a trailing slash. |
| 122 | */ |
| 123 | var forceTrailingSlash = function(path) { |
| 124 | // Check the name ends with a / |
| 125 | if (path.slice(-1) !== "/") { |
| 126 | path += "/"; // IE doesn't like substr(-1) |
| 127 | } |
| 128 | return path; |
| 129 | }; |
| 130 | |
| 131 | /** |
| 132 | * Add a (sub) folder in the current folder. |