Move core:path to core:path/slashpath

This is to reduce the confusion that occurs between that package and the `core:path/filepath` package
This commit is contained in:
gingerBill
2022-01-17 11:38:15 +00:00
parent 2d35a5c1af
commit 1d293749c2
3 changed files with 8 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
package path
#panic(
`core:path/slashpath - for paths separated by forward slashes, e.g. paths in URLs, this does not deal with OS-specific paths
core:path/filepath - uses either forward slashes or backslashes depending on the operating system, deals with Windows/NT paths with volume letters or backslashes (on the related platforms)`)

View File

@@ -1,4 +1,4 @@
package path
package slashpath
import "core:strings"
import "core:unicode/utf8"

View File

@@ -1,9 +1,9 @@
// The path package is only to be used for paths separated by forward slashes,
// The slashpath 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
package slashpath
import "core:strings"