File
class File extends AbstractObject implements IdAble
A file.
Properties
$lastQuery | from AbstractObject |
Methods
No description
Retrieves the contents of the file.
Return the file's digest. The format of the digest is not guaranteed to be stable between releases of Dagger. It is guaranteed to be stable between invocations of the same Dagger engine.
Writes the file to a file path on the host.
A unique identifier for this File.
Retrieves the name of the file.
Retrieves the size of the file, in bytes.
Retrieves this file with its created/modified timestamps set to the given time.
Details
in
AbstractObject at line 13
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)
No description
in
AbstractObject at line 19
protected null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)
No description
at line 19
string
contents()
Retrieves the contents of the file.
at line 28
string
digest(bool|null $excludeMetadata = false)
Return the file's digest. The format of the digest is not guaranteed to be stable between releases of Dagger. It is guaranteed to be stable between invocations of the same Dagger engine.
at line 40
string
export(string $path, bool|null $allowParentDirPath = false)
Writes the file to a file path on the host.
at line 53
AbstractId
id()
A unique identifier for this File.
at line 62
string
name()
Retrieves the name of the file.
at line 71
int
size()
Retrieves the size of the file, in bytes.
at line 80
FileId
sync()
Force evaluation in the engine.
at line 89
File
withName(string $name)
Retrieves this file with its name set to the given name.
at line 99
File
withTimestamps(int $timestamp)
Retrieves this file with its created/modified timestamps set to the given time.