(path)
| 12956 | * @return {String} the path with a trailing slash. |
| 12957 | */ |
| 12958 | var forceTrailingSlash = function(path) { |
| 12959 | // Check the name ends with a / |
| 12960 | if (path.slice(-1) != "/") { |
| 12961 | path += "/"; // IE doesn't like substr(-1) |
| 12962 | } |
| 12963 | return path; |
| 12964 | }; |
| 12965 | /** |
| 12966 | * Add a (sub) folder in the current folder. |
| 12967 | * @private |