Browse Source

Fix Comments

Sebastien Vandenberghe 7 years ago
parent
commit
fb639a8407
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/Tools/babylon.tools.ts

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

@@ -212,6 +212,12 @@
             return path.substring(index + 1);
             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 {
         public static GetFolderPath(uri: string, returnUnchangedIfNoSlash = false): string {
             var index = uri.lastIndexOf("/");
             var index = uri.lastIndexOf("/");
             if (index < 0) {
             if (index < 0) {