SingletonTemporaryFile

play.api.libs.Files.SingletonTemporaryFileCreator.SingletonTemporaryFile

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def file: File

Inherited methods

def atomicMoveWithFallback(to: Path): Path

Attempts to move source to target atomically and falls back to a non-atomic move if it fails.

Attempts to move source to target atomically and falls back to a non-atomic move if it fails.

This always tries to replace existent files. Since it is platform dependent if atomic moves replaces existent files or not, considering that it will always replaces, makes the API more predictable.

Value parameters

to

the path to the destination file

Attributes

Inherited from:
TemporaryFile
def atomicMoveWithFallback(to: File): Path

Attempts to move source to target atomically and falls back to a non-atomic move if it fails.

Attempts to move source to target atomically and falls back to a non-atomic move if it fails.

This always tries to replace existent files. Since it is platform dependent if atomic moves replaces existent files or not, considering that it will always replaces, makes the API more predictable.

Value parameters

to

the path to the destination file

Attributes

Inherited from:
TemporaryFile
def copyTo(to: Path, replace: Boolean): Path

Copy the file to the specified path destination and, if the destination exists, decide if replace it based on the replace parameter.

Copy the file to the specified path destination and, if the destination exists, decide if replace it based on the replace parameter.

Value parameters

replace

if it should replace an existing file.

to

the path destination.

Attributes

Inherited from:
TemporaryFile
def copyTo(to: File, replace: Boolean): Path

Copy the file to the specified path destination and, if the destination exists, decide if replace it based on the replace parameter.

Copy the file to the specified path destination and, if the destination exists, decide if replace it based on the replace parameter.

Value parameters

replace

if it should replace an existing file.

to

the destination file.

Attributes

Inherited from:
TemporaryFile
def moveTo(to: Path, replace: Boolean): Path

Move the file using a java.nio.file.Path.

Move the file using a java.nio.file.Path.

Value parameters

replace

true if an existing file should be replaced, false otherwise.

to

the path to the destination file

Attributes

Inherited from:
TemporaryFile
def moveTo(to: File, replace: Boolean): Path

Move the file to the specified destination java.io.File. In some cases, the source and destination file may point to the same inode. See the documentation for java.nio.file.Files.move to see more details.

Move the file to the specified destination java.io.File. In some cases, the source and destination file may point to the same inode. See the documentation for java.nio.file.Files.move to see more details.

Value parameters

replace

true if an existing file should be replaced, false otherwise.

to

the path to the destination file

Attributes

Inherited from:
TemporaryFile

Deprecated and Inherited methods

def atomicMoveFileWithFallback(to: Path): Path

Attempts to move source to target atomically and falls back to a non-atomic move if it fails.

Attempts to move source to target atomically and falls back to a non-atomic move if it fails.

This always tries to replace existent files. Since it is platform dependent if atomic moves replaces existent files or not, considering that it will always replaces, makes the API more predictable.

Value parameters

to

the path to the destination file

Attributes

Deprecated

Since 2.8.0. Renamed to atomicMoveWithFallback.

Inherited from:
TemporaryFile
def atomicMoveFileWithFallback(to: File): Path

Attempts to move source to target atomically and falls back to a non-atomic move if it fails.

Attempts to move source to target atomically and falls back to a non-atomic move if it fails.

This always tries to replace existent files. Since it is platform dependent if atomic moves replaces existent files or not, considering that it will always replaces, makes the API more predictable.

Value parameters

to

the path to the destination file

Attributes

Deprecated

Since 2.8.0. Renamed to atomicMoveWithFallback.

Inherited from:
TemporaryFile
def moveFileTo(to: Path, replace: Boolean): Path

Move the file using a java.nio.file.Path.

Move the file using a java.nio.file.Path.

Value parameters

replace

true if an existing file should be replaced, false otherwise.

to

the path to the destination file

Attributes

Deprecated

Since 2.8.0. Renamed to moveTo.

Inherited from:
TemporaryFile
def moveFileTo(to: File, replace: Boolean): Path

Move the file to the specified destination java.io.File. In some cases, the source and destination file may point to the same inode. See the documentation for java.nio.file.Files.move to see more details.

Move the file to the specified destination java.io.File. In some cases, the source and destination file may point to the same inode. See the documentation for java.nio.file.Files.move to see more details.

Value parameters

replace

true if an existing file should be replaced, false otherwise.

to

the path to the destination file

Attributes

Deprecated

Since 2.8.0. Renamed to moveTo.

Inherited from:
TemporaryFile

Concrete fields

val path: Path