Throwing wrappers for file functions.
More...
|
static | copy ( $source, $dest) |
| Copy file.
|
|
static | getContents ( $path) |
| Get contents.
|
|
static | putContents ( $path, $contents) |
| Put contents.
|
|
static | openInputFile ( $path) |
| Open a file in read mode.
|
|
static | openOutputFile ( $path) |
| Open a file in write mode.
|
|
static | openInputFileStream ( $path) |
| Open a file in read mode and convert it to a StreamInterface.
|
|
static | openOutputFileStream ( $path) |
| Open a file in write mode and convert it to a StreamInterface.
|
|
static | copyStreamToFile (StreamInterface $stream, string $path) |
| Copy a stream to a file.
|
|
static | mkdir ( $path) |
| Make a directory with group/other permission bits masked out.
|
|
static | getMwHashes (StreamInterface $stream) |
| Get content hash headers for MediaWiki from a stream.
|
|
Throwing wrappers for file functions.
◆ copy()
static Shellbox\FileUtils::copy |
( |
| $source, |
|
|
| $dest ) |
|
static |
Copy file.
- Parameters
-
string | $source | |
string | $dest | |
- Exceptions
-
◆ copyStreamToFile()
static Shellbox\FileUtils::copyStreamToFile |
( |
StreamInterface | $stream, |
|
|
string | $path ) |
|
static |
Copy a stream to a file.
- Parameters
-
StreamInterface | $stream | |
string | $path | |
- Exceptions
-
◆ getContents()
static Shellbox\FileUtils::getContents |
( |
| $path | ) |
|
|
static |
Get contents.
- Parameters
-
- Returns
- string
- Exceptions
-
◆ getMwHashes()
static Shellbox\FileUtils::getMwHashes |
( |
StreamInterface | $stream | ) |
|
|
static |
Get content hash headers for MediaWiki from a stream.
- Parameters
-
- Returns
- array
- Exceptions
-
◆ mkdir()
static Shellbox\FileUtils::mkdir |
( |
| $path | ) |
|
|
static |
Make a directory with group/other permission bits masked out.
- Parameters
-
- Exceptions
-
◆ openInputFile()
static Shellbox\FileUtils::openInputFile |
( |
| $path | ) |
|
|
static |
Open a file in read mode.
- Parameters
-
- Returns
- resource
- Exceptions
-
◆ openInputFileStream()
static Shellbox\FileUtils::openInputFileStream |
( |
| $path | ) |
|
|
static |
Open a file in read mode and convert it to a StreamInterface.
- Parameters
-
- Returns
- StreamInterface
- Exceptions
-
◆ openOutputFile()
static Shellbox\FileUtils::openOutputFile |
( |
| $path | ) |
|
|
static |
Open a file in write mode.
- Parameters
-
- Returns
- resource
- Exceptions
-
◆ openOutputFileStream()
static Shellbox\FileUtils::openOutputFileStream |
( |
| $path | ) |
|
|
static |
Open a file in write mode and convert it to a StreamInterface.
- Parameters
-
- Returns
- StreamInterface
- Exceptions
-
◆ putContents()
static Shellbox\FileUtils::putContents |
( |
| $path, |
|
|
| $contents ) |
|
static |
Put contents.
- Parameters
-
string | $path | |
string | $contents | |
- Exceptions
-
The documentation for this class was generated from the following file: