trait PlatformPath extends Object with StObject
- Annotations
- @JSType() @native()
- Source
- pathMod.scala
- Alphabetic
- By Inheritance
- PlatformPath
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def basename(p: java.lang.String, ext: java.lang.String): java.lang.String
- def basename(p: java.lang.String): java.lang.String
Return the last portion of a path.
Return the last portion of a path. Similar to the Unix basename command. Often used to extract the file name from a fully qualified path.
- p
the path to evaluate.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- val delimiter: java.lang.String
The platform-specific file delimiter.
The platform-specific file delimiter. ';' or ':'.
- def dirname(p: java.lang.String): java.lang.String
Return the directory name of a path.
Return the directory name of a path. Similar to the Unix dirname command.
- p
the path to evaluate.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def extname(p: java.lang.String): java.lang.String
Return the extension of the path, from the last '.' to end of string in the last portion of the path.
Return the extension of the path, from the last '.' to end of string in the last portion of the path. If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string
- p
the path to evaluate.
- def format(pP: FormatInputPathObject): java.lang.String
Returns a path string from an object - the opposite of parse().
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hasOwnProperty(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def isAbsolute(p: java.lang.String): Boolean
Determines whether {path} is an absolute path.
Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- def join(paths: java.lang.String*): java.lang.String
Join all arguments together and normalize the resulting path.
Join all arguments together and normalize the resulting path. Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown.
- paths
paths to join.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def normalize(p: java.lang.String): java.lang.String
Normalize a string path, reducing '..' and '.' parts.
Normalize a string path, reducing '..' and '.' parts. When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used.
- p
string path to normalize.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def parse(p: java.lang.String): ParsedPath
Returns an object from a path string - the opposite of format().
- val posix: PlatformPath
Posix specific pathing.
Posix specific pathing. Same as parent object on posix.
- def propertyIsEnumerable(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- def relative(from: java.lang.String, to: java.lang.String): java.lang.String
Solve the relative path from {from} to {to}.
Solve the relative path from {from} to {to}. At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve.
- def resolve(pathSegments: java.lang.String*): java.lang.String
The right-most parameter is considered {to}.
The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
Starting from leftmost {from} parameter, resolves {to} to an absolute path.
If {to} isn't already absolute, {from} arguments are prepended in right to left order, until an absolute path is found. If after using all {from} paths still no absolute path is found, the current working directory is used as well. The resulting path is normalized, and trailing slashes are removed unless the path gets resolved to the root directory.
- pathSegments
string paths to join. Non-string arguments are ignored.
- val sep: java.lang.String
The platform-specific file separator.
The platform-specific file separator. '\\' or '/'.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toNamespacedPath(path: java.lang.String): java.lang.String
On Windows systems only, returns an equivalent namespace-prefixed path for the given path.
On Windows systems only, returns an equivalent namespace-prefixed path for the given path. If path is not a string, path will be returned without modifications. This method is meaningful only on Windows system. On POSIX systems, the method is non-operational and always returns path without modifications.
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- val win32: PlatformPath
Windows specific pathing.
Windows specific pathing. Same as parent object on windows
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated