Implement resource identifier associated with a resource_store and a path.
class base resource identifier
extends debuggable
implements resource identifier
private resource store the resource store
private immutable list[string] path
base resource identifier(resource store the resource store, immutable list[string] path)
this • the resource store = the resource store
this • path = path
override base resource identifier parent()
if parent path size is nonnegative
parent path : pathslice(0, parent path size)
return base resource identifier • new(the resource store, pathslice(0, parent path size))
else
return this
override boolean exists()
override resource[string] access string(access option or null options)
return string resource • new(this, options)