Definition at line 5 of file File.php.
◆ copy()
League\Flysystem\File::copy |
( |
|
$newpath | ) |
|
Copy the file.
- Parameters
-
- Returns
- File|false new file or false
Definition at line 134 of file File.php.
136 if ($this->filesystem->copy($this->path, $newpath)) {
137 return new File($this->filesystem, $newpath);
◆ delete()
League\Flysystem\File::delete |
( |
| ) |
|
Delete the file.
- Returns
- bool success boolean
Definition at line 198 of file File.php.
200 return $this->filesystem->delete($this->path);
◆ exists()
League\Flysystem\File::exists |
( |
| ) |
|
Check whether the file exists.
- Returns
- bool
Definition at line 12 of file File.php.
14 return $this->filesystem->has($this->path);
◆ getMetadata()
League\Flysystem\File::getMetadata |
( |
| ) |
|
Get the file's metadata.
- Returns
- array
Definition at line 178 of file File.php.
180 return $this->filesystem->getMetadata($this->path);
◆ getMimetype()
League\Flysystem\File::getMimetype |
( |
| ) |
|
Get the file's mimetype.
- Returns
- string mimetime
Definition at line 158 of file File.php.
160 return $this->filesystem->getMimetype($this->path);
◆ getSize()
League\Flysystem\File::getSize |
( |
| ) |
|
Get the file size.
- Returns
- int file size
Definition at line 188 of file File.php.
190 return $this->filesystem->getSize($this->path);
◆ getTimestamp()
League\Flysystem\File::getTimestamp |
( |
| ) |
|
Get the file's timestamp.
- Returns
- int unix timestamp
Definition at line 148 of file File.php.
150 return $this->filesystem->getTimestamp($this->path);
◆ getVisibility()
League\Flysystem\File::getVisibility |
( |
| ) |
|
Get the file's visibility.
- Returns
- string visibility
Definition at line 168 of file File.php.
170 return $this->filesystem->getVisibility($this->path);
◆ put()
League\Flysystem\File::put |
( |
|
$content | ) |
|
Create the file or update if exists.
- Parameters
-
- Returns
- bool success boolean
Definition at line 92 of file File.php.
94 return $this->filesystem->put($this->path, $content);
◆ putStream()
League\Flysystem\File::putStream |
( |
|
$resource | ) |
|
Create the file or update if exists using a stream.
- Parameters
-
- Returns
- bool success boolean
Definition at line 104 of file File.php.
106 return $this->filesystem->putStream($this->path, $resource);
◆ read()
League\Flysystem\File::read |
( |
| ) |
|
Read the file.
- Returns
- string file contents
Definition at line 22 of file File.php.
24 return $this->filesystem->read($this->path);
◆ readStream()
League\Flysystem\File::readStream |
( |
| ) |
|
Read the file as a stream.
- Returns
- resource file stream
Definition at line 32 of file File.php.
34 return $this->filesystem->readStream($this->path);
◆ rename()
League\Flysystem\File::rename |
( |
|
$newpath | ) |
|
Rename the file.
- Parameters
-
- Returns
- bool success boolean
Definition at line 116 of file File.php.
118 if ($this->filesystem->rename($this->path, $newpath)) {
119 $this->path = $newpath;
◆ update()
League\Flysystem\File::update |
( |
|
$content | ) |
|
Update the file contents.
- Parameters
-
- Returns
- bool success boolean
Definition at line 68 of file File.php.
70 return $this->filesystem->update($this->path, $content);
◆ updateStream()
League\Flysystem\File::updateStream |
( |
|
$resource | ) |
|
Update the file contents with a stream.
- Parameters
-
- Returns
- bool success boolean
Definition at line 80 of file File.php.
82 return $this->filesystem->updateStream($this->path, $resource);
◆ write()
League\Flysystem\File::write |
( |
|
$content | ) |
|
Write the new file.
- Parameters
-
- Returns
- bool success boolean
Definition at line 44 of file File.php.
46 return $this->filesystem->write($this->path, $content);
◆ writeStream()
League\Flysystem\File::writeStream |
( |
|
$resource | ) |
|
Write the new file using a stream.
- Parameters
-
- Returns
- bool success boolean
Definition at line 56 of file File.php.
58 return $this->filesystem->writeStream($this->path, $resource);
The documentation for this class was generated from the following file:
- libs/composer/vendor/league/flysystem/src/File.php