Files

play.api.libs.Files
object Files

FileSystem utilities.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Files.type

Members list

Type members

Classlikes

@Singleton
class DefaultTemporaryFileCreator(applicationLifecycle: ApplicationLifecycle, temporaryFileReaper: TemporaryFileReaper, conf: Configuration) extends TemporaryFileCreator

Creates temporary folders inside a single temporary folder. deleting all files on a successful application stop. Note that this will not clean up the filesystem if the application / JVM terminates abnormally.

Creates temporary folders inside a single temporary folder. deleting all files on a successful application stop. Note that this will not clean up the filesystem if the application / JVM terminates abnormally.

Attributes

Supertypes
class Object
trait Matchable
class Any

Attributes

Supertypes
class Object
trait Matchable
class Any

Creates temporary folders using java.nio.file.Files.createTempFile.

Creates temporary folders using java.nio.file.Files.createTempFile.

Files created by this method will not be cleaned up with the application or JVM stops.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object TemporaryFile

Utilities to manage temporary files.

Utilities to manage temporary files.

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Logic for creating a temporary file. Users should try to clean up the file themselves, but this TemporaryFileCreator implementation may also try to clean up any leaked files, e.g. when the Application or JVM stops.

Logic for creating a temporary file. Users should try to clean up the file themselves, but this TemporaryFileCreator implementation may also try to clean up any leaked files, e.g. when the Application or JVM stops.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class TemporaryFileReaperConfiguration(enabled: Boolean, olderThan: FiniteDuration, initialDelay: FiniteDuration, interval: FiniteDuration)

Configuration for the TemporaryFileReaper.

Configuration for the TemporaryFileReaper.

Value parameters

enabled

true if the reaper is enabled, false otherwise. Default is false.

initialDelay

the initial delay after application start when the reaper first run. Default 5 minutes.

interval

the duration after the initial run during which the reaper will scan for files it can remove. Default 5 minutes.

olderThan

the period after which the file is considered old. Default 5 minutes.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete fields

lazy val logger: Logger