Packages

c

com.swoval.files.node

TypedPath

class TypedPath extends AnyRef

Represents a file system path. Provides (possibly) fast accessors for some properties of the file. It is generally unsafe to cache as the properties do not change if the underlying file is modified.

Annotations
@JSExportTopLevel( "TypedPath" ) @JSExportAll()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TypedPath
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TypedPath(typedPath: files.TypedPath)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def exists: Boolean

    Returns true if the path at TypedPath.getPath existed when this TypedPath was created.

    Returns true if the path at TypedPath.getPath existed when this TypedPath was created.

    returns

    true if this TypedPath exists.

  9. def expanded: String

    Returns the real path when this typed path is a symbolic link.

    Returns the real path when this typed path is a symbolic link. Otherwise returns the path itself. Unlike java.nio.file.Path.toRealPath, if a parent of the path is a symbolic link, but the path itself is not, the path is not expanded.

    returns

    the expanded path.

  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def getPath: String
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def isDirectory: Boolean

    Returns true if the path at TypedPath.getPath was a directory when this TypedPath was created.

    Returns true if the path at TypedPath.getPath was a directory when this TypedPath was created.

    returns

    true if this TypedPath represents a directory.

  15. def isFile: Boolean

    Returns true if the path at TypedPath.getPath was a regular file when this TypedPath was created.

    Returns true if the path at TypedPath.getPath was a regular file when this TypedPath was created.

    returns

    true if this TypedPath represents a regular file.

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def isSymbolicLink: Boolean

    Returns true if the path at TypedPath.getPath was a symbolic link when this TypedPath was created.

    Returns true if the path at TypedPath.getPath was a symbolic link when this TypedPath was created.

    returns

    true if this TypedPath represents a symbolic link.

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String

    Return the right value if this JSEither represents a right value.

    Return the right value if this JSEither represents a right value. Otherwise throw a com.swoval.functional.Either.NotRightException.

    returns

    the right value.

    Definition Classes
    TypedPath → AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped