LocalFile
com.github.cloudfiles.localfs.LocalFsModel.LocalFile
case class LocalFile(id: Path, name: String, createdAt: Instant, lastModifiedAt: Instant, size: Long, lastModifiedUpdate: Option[Instant]) extends File[Path], LocalUpdatable
A data class representing a file in the local file system.
This class contains the attributes of a local file supported by the implementation. When a file is resolved, the values of these attributes are determined and stored in an instance - so they do not provide a life view to the underlying file system object.
When creating or updating a file it is possible to set some selected attributes. This is done by setting the properties starting with the prefix ''update''.
Value parameters
- createdAt
-
the file's creation time
- id
-
the path to the file
- lastModifiedAt
-
the file's last modified time
- lastModifiedUpdate
-
optional property to update the last modified time
- name
-
the name of the file
- size
-
the file size (in bytes)
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait LocalUpdatabletrait File[Path]trait Element[Path]class Objecttrait Matchableclass Any
Members list
In this article