object TemporaryFile

Utilities to manage temporary files.

Source
Files.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TemporaryFile
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. implicit def temporaryFileToFile(tempFile: TemporaryFile): File

    Implicitly converts a to a plain old java.io.File.

  2. implicit def temporaryFileToPath(tempFile: TemporaryFile): Path

    Implicitly converts a to a plain old java.nio.file.Path instance.

Deprecated Value Members

  1. def apply(creator: TemporaryFileCreator, prefix: String = "", suffix: String = ""): TemporaryFile

    Create a new temporary file.

    Create a new temporary file.

    Example:

    val tempFile = TemporaryFile(prefix = "uploaded")
    creator

    the temporary file creator

    prefix

    The prefix used for the temporary file name.

    suffix

    The suffix used for the temporary file name.

    returns

    A temporary file instance.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.6.0) Use temporaryFileCreator.create