InMemoryFile

class OCP\Files\SimpleFS\InMemoryFile
This class represents a file that is only hold in memory.
Source:lib/public/Files/SimpleFS/InMemoryFile.php#37
Implements:OCP\Files\SimpleFS\ISimpleFile

Properties

Methods

public OCP\Files\SimpleFS\InMemoryFile::__construct($name, $contents)
InMemoryFile constructor.
Source:

lib/public/Files/SimpleFS/InMemoryFile.php#59

Parameters:
  • $name (string) The file name
  • $contents (string) The file contents
Since:

16.0.0

public OCP\Files\SimpleFS\InMemoryFile::getName()
Source:lib/public/Files/SimpleFS/InMemoryFile.php#68
Since:16.0.0
public OCP\Files\SimpleFS\InMemoryFile::getSize()
Source:lib/public/Files/SimpleFS/InMemoryFile.php#76
Since:16.0.0
public OCP\Files\SimpleFS\InMemoryFile::getETag()
Source:lib/public/Files/SimpleFS/InMemoryFile.php#84
Since:16.0.0
public OCP\Files\SimpleFS\InMemoryFile::getMTime()
Source:lib/public/Files/SimpleFS/InMemoryFile.php#92
Since:16.0.0
public OCP\Files\SimpleFS\InMemoryFile::getContent()
Source:lib/public/Files/SimpleFS/InMemoryFile.php#100
Since:16.0.0
public OCP\Files\SimpleFS\InMemoryFile::putContent($data)
Source:lib/public/Files/SimpleFS/InMemoryFile.php#108
Since:16.0.0
public OCP\Files\SimpleFS\InMemoryFile::delete()
In memory files can’t be deleted.
Source:lib/public/Files/SimpleFS/InMemoryFile.php#117
Since:16.0.0
public OCP\Files\SimpleFS\InMemoryFile::getMimeType()
Source:lib/public/Files/SimpleFS/InMemoryFile.php#125
Since:16.0.0
public OCP\Files\SimpleFS\InMemoryFile::read()
Stream reading is unsupported for in memory files.
Source:lib/public/Files/SimpleFS/InMemoryFile.php#136
Throws:\OCP\Files\NotPermittedException
Since:16.0.0
public OCP\Files\SimpleFS\InMemoryFile::write()
Stream writing isn’t available for in memory files.
Source:lib/public/Files/SimpleFS/InMemoryFile.php#148
Throws:\OCP\Files\NotPermittedException
Since:16.0.0