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 Serializable
trait Product
trait Equals
trait File[Path]
trait Element[Path]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def description: Option[String]

Returns the description of this element. Not all file systems support such a description, and users typically do not provide one; therefore, this is an ''Option'' and can be ''None''.

Returns the description of this element. Not all file systems support such a description, and users typically do not provide one; therefore, this is an ''Option'' and can be ''None''.

Attributes

Returns

the optional description of this element

Definition Classes
Element

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product