mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 04:50:29 +00:00
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:
5
core/path/path_error.odin
Normal file
5
core/path/path_error.odin
Normal 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)`)
|
||||
@@ -1,4 +1,4 @@
|
||||
package path
|
||||
package slashpath
|
||||
|
||||
import "core:strings"
|
||||
import "core:unicode/utf8"
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user