FileAccessHelper¶
-
class
OC\IntegrityCheck\Helpers\
FileAccessHelper
¶ - Class FileAccessHelper provides a helper around file_get_contents andfile_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: Parameters: - $filename (string)
Returns: string | bool
-
public
OC\IntegrityCheck\Helpers\FileAccessHelper::
file_exists
($filename)¶ - Wrapper around file_exists($filename)
Source: Parameters: - $filename (string)
Returns: bool
-
public
OC\IntegrityCheck\Helpers\FileAccessHelper::
file_put_contents
($filename, $data)¶ - Wrapper around file_put_contents($filename, $data)
Source: Parameters: - $filename (string)
- $data (string)
Returns: int
Throws: \Exception
-
public
OC\IntegrityCheck\Helpers\FileAccessHelper::
is_writable
($path)¶ Source: Parameters: - $path (string)
Returns: bool
-
public
OC\IntegrityCheck\Helpers\FileAccessHelper::
assertDirectoryExists
($path)¶ Source: Parameters: - $path (string)
Throws: \Exception