浏览代码

Fix Comments

Sebastien Vandenberghe 7 年之前
父节点
当前提交
fb639a8407
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/Tools/babylon.tools.ts

+ 6 - 0
src/Tools/babylon.tools.ts

@@ -212,6 +212,12 @@
             return path.substring(index + 1);
         }
 
+        /**
+         * Extracts the "folder" part of a path (everything before the filename).
+         * @param uri The URI to extract the info from
+         * @param returnUnchangedIfNoSlash Do not touch the URI if no slashes are present
+         * @returns The "folder" part of the path
+         */
         public static GetFolderPath(uri: string, returnUnchangedIfNoSlash = false): string {
             var index = uri.lastIndexOf("/");
             if (index < 0) {