Class/Object

rapture.fs

FileUrl

Related Docs: object FileUrl | package fs

Permalink

class FileUrl extends Url[FileUrl] with PathUrl[FileUrl]

Defines a URL for the file: scheme, and provides standard filesystem operations on the file represented by the URL.

Linear Supertypes
PathUrl[FileUrl], Url[FileUrl], Uri, AbsolutePath[FileUrl], Path[FileUrl], Link, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FileUrl
  2. PathUrl
  3. Url
  4. Uri
  5. AbsolutePath
  6. Path
  7. Link
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FileUrl(pathRoot: PathRoot[FileUrl], elements: Seq[String])

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +[P <: Path[P]](dest: P): Path[_]

    Permalink
    Definition Classes
    Url → AbsolutePath
  4. def -[P <: AbsolutePath[P]](src: P)(implicit linkable: Linkable[P, FileUrl]): Result

    Permalink
    Definition Classes
    AbsolutePath
  5. def /(path: SimplePath): FileUrl

    Permalink
    Definition Classes
    Url
  6. def /(element: String): FileUrl

    Permalink
    Definition Classes
    Url → AbsolutePath → Path
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def absolute: Boolean

    Permalink
    Definition Classes
    AbsolutePath → Path → Link
  9. val afterPath: AfterPath

    Permalink
    Definition Classes
    Path
  10. def afterPathString: String

    Permalink
    Attributes
    protected
    Definition Classes
    Path
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. val ascent: Int

    Permalink
    Definition Classes
    Path
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def deleteOnExit(): Unit

    Permalink

    Add a hook to the filesystem to delete this file upon shutdown of the JVM.

  15. def drop(n: Int): FileUrl

    Permalink
    Definition Classes
    AbsolutePath
  16. def dropRight(n: Int): FileUrl

    Permalink
    Definition Classes
    AbsolutePath
  17. val elements: Seq[String]

    Permalink
    Definition Classes
    Path
  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def equals(any: Any): Boolean

    Permalink
    Definition Classes
    Url → Path → AnyRef → Any
  20. def exists: Boolean

    Permalink

    Returns true if this object exists on the filesystem.

  21. def extension(implicit mode: Mode[FsMethods]): Wrap[Option[String], Exception]

    Permalink

    Extract the file extension from the name of this file.

  22. def filename: String

    Permalink

    Returns the filename of this filesystem object.

  23. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Url → AnyRef → Any
  26. def head: String

    Permalink
    Definition Classes
    AbsolutePath
  27. def hidden: Boolean

    Permalink

    Returns true if the file or directory is hidden.

  28. def init: FileUrl

    Permalink
    Definition Classes
    AbsolutePath
  29. def isFile: Boolean

    Permalink

    Returns true if the filesystem object represented by this FileUrl is a file, and false if it is a directory.

  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. def isRoot: Boolean

    Permalink
    Definition Classes
    AbsolutePath
  32. lazy val javaFile: File

    Permalink

    The java.io.File corresponding to this FileUrl.

  33. def last: String

    Permalink
    Definition Classes
    AbsolutePath
  34. def lastModified[I](implicit arg0: ByInstant[I], mode: Mode[FsMethods]): Wrap[I, Exception]

    Permalink

    Returns the date of the last modification to the file or directory.

  35. def lastModified_=[I](d: I)(implicit arg0: ByInstant[I]): Boolean

    Permalink

    Set the last modified time of this file or directory.

  36. def length(implicit mode: Mode[FsMethods]): Wrap[Long, Exception]

    Permalink

    Returns the size of the file in bytes.

  37. def link[P <: AbsolutePath[P]](dest: P)(implicit linkable: Linkable[FileUrl, P]): Result

    Permalink
    Definition Classes
    AbsolutePath
  38. def makePath(ascent: Int, elements: Seq[String], afterPath: AfterPath): FileUrl

    Permalink

    Creates a new instance of this type of URL.

    Creates a new instance of this type of URL.

    Definition Classes
    FileUrl → AbsolutePath → Path
  39. def mkdir(makeParents: Boolean = false)(implicit mode: Mode[FsMethods]): Wrap[Boolean, Exception]

    Permalink

    If the filesystem object represented by this FileUrl does not exist, it is created as a directory, provided that either the immediate parent directory already exists, or the makeParents path is set.

  40. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  43. def parent: FileUrl

    Permalink
    Definition Classes
    AbsolutePath
  44. val pathRoot: PathRoot[FileUrl]

    Permalink
    Definition Classes
    FileUrl → Url
  45. def pathString: String

    Permalink
    Definition Classes
    AbsolutePath
  46. def query[Q](q: Q)(implicit qt: QueryType[FileUrl, Q]): FileUrl

    Permalink
    Definition Classes
    Path
  47. def readable: Boolean

    Permalink

    Returns true if the file or directory represented by this FileUrl can be read from.

  48. def scheme: Scheme[FileUrl]

    Permalink
    Definition Classes
    Url → Uri
  49. def schemeName: String

    Permalink
    Definition Classes
    Url
  50. def schemeSpecificPart: String

    Permalink

    The scheme-specific part of the URL, which appears after the colon

    The scheme-specific part of the URL, which appears after the colon

    Definition Classes
    FileUrl → Uri
  51. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  52. def tail: FileUrl

    Permalink
    Definition Classes
    AbsolutePath
  53. def take(n: Int): FileUrl

    Permalink
    Definition Classes
    AbsolutePath
  54. def tempFile(prefix: String = "tmp", suffix: String = "")(implicit mode: Mode[FsMethods], platform: Platform): Wrap[FileUrl, Exception]

    Permalink

    Creates a temporary file beneath this directory with the prefix and suffix specified.

  55. def toString(): String

    Permalink
    Definition Classes
    Uri → AnyRef → Any
  56. def touch(): Boolean

    Permalink

    Update the last-modified time of this file to the current time.

  57. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. def writable: Boolean

    Permalink

    Returns true if the file or directory represented by this FileUrl can be written to.

  61. def writable_=(b: Boolean): Boolean

    Permalink

    Attempt to alter the permissions of this file so that it is writable.

Deprecated Value Members

  1. def /?[Q](q: Q)(implicit qt: QueryType[FileUrl, Q]): FileUrl

    Permalink
    Definition Classes
    Path
    Annotations
    @deprecated
    Deprecated

    (Since version 0.10.0) Use the query method instead.

Inherited from PathUrl[FileUrl]

Inherited from Url[FileUrl]

Inherited from Uri

Inherited from AbsolutePath[FileUrl]

Inherited from Path[FileUrl]

Inherited from Link

Inherited from AnyRef

Inherited from Any

Ungrouped