Local

class OC\Files\Storage\Local
for local filestore, we only have to map the paths
Source:lib/private/Files/Storage/Local.php#56
Parent:OC\Files\Storage\Common

Properties

protected static property OC\Files\Storage\Local::$datadir
Source:lib/private/Files/Storage/Local.php#57
protected static property OC\Files\Storage\Local::$dataDirLength
Source:lib/private/Files/Storage/Local.php#59
protected static property OC\Files\Storage\Local::$realDataDir
Source:lib/private/Files/Storage/Local.php#61

Methods

public OC\Files\Storage\Local::__construct($arguments)
Source:lib/private/Files/Storage/Local.php#63
public OC\Files\Storage\Local::__destruct()
Source:lib/private/Files/Storage/Local.php#81
public OC\Files\Storage\Local::getId()
Source:lib/private/Files/Storage/Local.php#84
public OC\Files\Storage\Local::mkdir($path)
Source:lib/private/Files/Storage/Local.php#88
public OC\Files\Storage\Local::rmdir($path)
Source:lib/private/Files/Storage/Local.php#96
public OC\Files\Storage\Local::opendir($path)
Source:lib/private/Files/Storage/Local.php#134
public OC\Files\Storage\Local::is_dir($path)
Source:lib/private/Files/Storage/Local.php#138
public OC\Files\Storage\Local::is_file($path)
Source:lib/private/Files/Storage/Local.php#145
public OC\Files\Storage\Local::stat($path)
Source:lib/private/Files/Storage/Local.php#149
public OC\Files\Storage\Local::getMetaData($path)
Source:lib/private/Files/Storage/Local.php#164
public OC\Files\Storage\Local::filetype($path)
Source:lib/private/Files/Storage/Local.php#210
public OC\Files\Storage\Local::filesize($path)
Source:lib/private/Files/Storage/Local.php#218
public OC\Files\Storage\Local::isReadable($path)
Source:lib/private/Files/Storage/Local.php#230
public OC\Files\Storage\Local::isUpdatable($path)
Source:lib/private/Files/Storage/Local.php#234
public OC\Files\Storage\Local::file_exists($path)
Source:lib/private/Files/Storage/Local.php#238
public OC\Files\Storage\Local::filemtime($path)
Source:lib/private/Files/Storage/Local.php#242
public OC\Files\Storage\Local::touch($path, $mtime=null)
Source:lib/private/Files/Storage/Local.php#255
public OC\Files\Storage\Local::file_get_contents($path)
Source:lib/private/Files/Storage/Local.php#276
public OC\Files\Storage\Local::file_put_contents($path, $data)
Source:lib/private/Files/Storage/Local.php#280
Source:lib/private/Files/Storage/Local.php#287
public OC\Files\Storage\Local::rename($path1, $path2)
Source:lib/private/Files/Storage/Local.php#307
public OC\Files\Storage\Local::copy($path1, $path2)
Source:lib/private/Files/Storage/Local.php#350
public OC\Files\Storage\Local::fopen($path, $mode)
Source:lib/private/Files/Storage/Local.php#361
public OC\Files\Storage\Local::hash($type, $path, $raw=false)
Source:lib/private/Files/Storage/Local.php#368
public OC\Files\Storage\Local::free_space($path)
Source:lib/private/Files/Storage/Local.php#372
public OC\Files\Storage\Local::search($query)
Source:lib/private/Files/Storage/Local.php#388
public OC\Files\Storage\Local::getLocalFile($path)
Source:lib/private/Files/Storage/Local.php#392
public OC\Files\Storage\Local::getLocalFolder($path)
Source:lib/private/Files/Storage/Local.php#396
protected OC\Files\Storage\Local::searchInDir($query, $dir="")
Source:

lib/private/Files/Storage/Local.php#405

Parameters:
  • $query (string)
  • $dir (string)
Returns:

array

public OC\Files\Storage\Local::hasUpdated($path, $time)
check if a file or folder has been updated since $time
Source:

lib/private/Files/Storage/Local.php#431

Parameters:
  • $path (string)
  • $time (int)
Returns:

bool

public OC\Files\Storage\Local::getSourcePath($path)
Get the source path (on disk) of a given path
Source:

lib/private/Files/Storage/Local.php#446

Parameters:
  • $path (string)
Returns:

string

Throws:

\OCP\Files\ForbiddenException

public OC\Files\Storage\Local::isLocal()
Source:lib/private/Files/Storage/Local.php#480
public OC\Files\Storage\Local::getETag($path)
get the ETag for a file or folder
Source:

lib/private/Files/Storage/Local.php#490

Parameters:
  • $path (string)
Returns:

string

public OC\Files\Storage\Local::copyFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime=false)
Source:

lib/private/Files/Storage/Local.php#527

Parameters:
Returns:

bool

public OC\Files\Storage\Local::moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath)
Source:

lib/private/Files/Storage/Local.php#551

Parameters:
Returns:

bool

public OC\Files\Storage\Local::writeStream($path, $stream, $size=null)
Source:lib/private/Files/Storage/Local.php#569