mirror of
https://github.com/GayPizzaSpecifications/dough.git
synced 2025-10-10 17:29:39 +00:00
19 lines
601 B
Kotlin
19 lines
601 B
Kotlin
package gay.pizza.dough.fs
|
|
|
|
import gay.pizza.dough.fs.nodefs.NodePathModule
|
|
|
|
class NodePath(override val fullPathString: String) : FsPath {
|
|
override val entityNameString: String
|
|
get() = NodePathModule.baseName(fullPathString)
|
|
override val parent: FsPath
|
|
get() = NodePath(fullPathString)
|
|
override val operations: FsOperations
|
|
get() = NodeFsOperations
|
|
|
|
override fun resolve(part: String): FsPath =
|
|
NodePath(NodePathModule.resolve(fullPathString, part))
|
|
|
|
override fun relativeTo(path: FsPath): FsPath =
|
|
NodePath(NodePathModule.relative(fullPathString, path.fullPathString))
|
|
}
|