Object

dagr.commons.io

PathUtil

Related Doc: package io

Permalink

object PathUtil

Provides utility methods for creating and manipulating Path objects and path-like Strings.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PathUtil
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def basename(name: String, trimExt: Boolean): String

    Permalink

    Works similarly to the unix command basename, by optionally removing an extension, and all leading path elements.

  6. def basename(name: Path, trimExt: Boolean = true): String

    Permalink

    Works similarly to the unix command basename, by optionally removing an extension, and all leading path elements.

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def extensionOf(path: Path): Option[String]

    Permalink

    Returns the extension of the filename (including the period) within the path, or None if there is no period in the name.

  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. val illegalCharacters: String

    Permalink
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def pathTo(first: String, more: String*): Path

    Permalink

    Resolves a path from a String, and then makes the path absolute.

    Resolves a path from a String, and then makes the path absolute. Prefer this to PathUtil.pathTo elsewhere.

  20. def removeExtension(pathname: String): String

    Permalink

    Remove the extension from a filename if present (the last .

    Remove the extension from a filename if present (the last . to the end of the string).

  21. def removeExtension(path: Path): Path

    Permalink

    Remove the extension from a filename if present (the last .

    Remove the extension from a filename if present (the last . to the end of the string).

  22. def replaceExtension(path: Path, ext: String): Path

    Permalink

    Replaces the extension on an existing path.

  23. def sanitizeFileName(fileName: String, illegalCharacters: String = PathUtil.illegalCharacters, replacement: Option[Char] = Some('_')): String

    Permalink

    Replaces a set of illegal characters within a String that is to be used as a filename.

    Replaces a set of illegal characters within a String that is to be used as a filename.

    fileName

    the string that is to be used as a filename

    illegalCharacters

    the set of characters to be replaced if found, defaults to illegalCharacters

    replacement

    an optional replacement character, defaulting to '_'; if None characters are just removed

    returns

    the filename without illegal characters

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped