Преглед на файлове

Add some comments to explain what the differences between packages path and path/filepath

gingerBill преди 4 години
родител
ревизия
0bd38ba1f6
променени са 2 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 2 0
      core/path/filepath/path.odin
  2. 5 0
      core/path/path.odin

+ 2 - 0
core/path/filepath/path.odin

@@ -1,3 +1,5 @@
+// The path/filepath package uses either forward slashes or backslashes depending on the operating system
+// To process paths usch as URLs that depend on forward slashes regardless of the OS, use the path package
 package filepath
 
 import "core:os"

+ 5 - 0
core/path/path.odin

@@ -1,3 +1,8 @@
+// The path package is only to be used for paths separated by forward slashes,
+// e.g. paths in URLs
+//
+// This package does not deal with Windows/NT paths with volume letters or backslashes
+// To manipulate operating system specific paths, use the path/filepath package
 package path
 
 import "core:strings"