(path)
| 1718 | * @return {String} the path with a trailing slash. |
| 1719 | */ |
| 1720 | var forceTrailingSlash = function(path) { |
| 1721 | // Check the name ends with a / |
| 1722 | if (path.slice(-1) !== "/") { |
| 1723 | path += "/"; // IE doesn't like substr(-1) |
| 1724 | } |
| 1725 | return path; |
| 1726 | }; |
| 1727 | |
| 1728 | /** |
| 1729 | * Add a (sub) folder in the current folder. |