package pathy
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- pathy
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- type ADir = Path[Abs, Dir, Sandboxed]
- type AFile = Path[Abs, File, Sandboxed]
- type APath = Path[Abs, Any, Sandboxed]
- type AbsPath[T] = Path[Abs, T, Sandboxed]
- type DPath = Path[Any, Dir, Sandboxed]
- type FPath = Path[Any, File, Sandboxed]
- type PathSegment = \/[DirName, FileName]
- type RDir = Path[Rel, Dir, Sandboxed]
- type RFile = Path[Rel, File, Sandboxed]
- type RPath = Path[Rel, Any, Sandboxed]
- type RelPath[T] = Path[Rel, T, Sandboxed]
Value Members
-
val
UriPathCodec: PathCodec
PathCodec with URI-encoded segments.
-
def
firstSegmentName(p: Path[_, _, _]): slamdata.Predef.Option[PathSegment]
Returns the first named segment of the given path.
- implicit def liftDirName(x: DirName): PathSegment
- implicit def liftFileName(x: FileName): PathSegment
- def mkAbsolute[T, S](baseDir: AbsDir[S], path: Path[_, T, S]): Path[Abs, T, S]
- def pathName(p: APath): slamdata.Predef.Option[PathSegment]
- def prettyPrint(path: Path[_, _, _]): slamdata.Predef.String
-
def
rebaseA(onto: ADir): ~>[AbsPath, AbsPath]
Rebases absolute paths onto the provided absolute directory, so
rebaseA(/baz)(/foo/bar)becomes/baz/foo/bar. -
def
refineTypeAbs[T, S](path: Path[_, T, S]): \/[Path[Abs, T, S], Path[Rel, T, S]]
- Annotations
- @SuppressWarnings()
-
def
sandboxCurrent[A, T](path: Path[A, T, Unsandboxed]): slamdata.Predef.Option[Path[A, T, Sandboxed]]
- Annotations
- @SuppressWarnings()
- def stringValue(seg: PathSegment): slamdata.Predef.String
-
def
stripPrefixA(prefix: ADir): ~>[AbsPath, AbsPath]
Removes the given prefix from an absolute path, if present.
-
def
unsafeSandboxAbs[T, S](apath: Path[Abs, T, S]): Path[Abs, T, Sandboxed]
This is completely unsafe and should be phased out.
This is completely unsafe and should be phased out. Sandboxing is meant to prevent ending up with paths such as
/foo/../../..and by calling get on theOptionwe are wishful thinking this problem away- Annotations
- @SuppressWarnings()
- object ADir
- object AFile
- object APath
- object RPath