FileAccessHelper

class OC\IntegrityCheck\Helpers\FileAccessHelper
Class FileAccessHelper provides a helper around file_get_contents and
file_put_contents
Source:lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#37

Methods

public OC\IntegrityCheck\Helpers\FileAccessHelper::file_get_contents($filename)
Wrapper around file_get_contents($filename, $data)
Source:

lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44

Parameters:
  • $filename (string)
Returns:

string | bool

public OC\IntegrityCheck\Helpers\FileAccessHelper::file_exists($filename)
Wrapper around file_exists($filename)
Source:

lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#54

Parameters:
  • $filename (string)
Returns:

bool

public OC\IntegrityCheck\Helpers\FileAccessHelper::file_put_contents($filename, $data)
Wrapper around file_put_contents($filename, $data)
Source:

lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#66

Parameters:
  • $filename (string)
  • $data (string)
Returns:

int

Throws:

\Exception

public OC\IntegrityCheck\Helpers\FileAccessHelper::is_writable($path)
Source:

lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#78

Parameters:
  • $path (string)
Returns:

bool

public OC\IntegrityCheck\Helpers\FileAccessHelper::assertDirectoryExists($path)
Source:

lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#86

Parameters:
  • $path (string)
Throws:

\Exception