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 | mkdir ( $path) |
| Make a directory with group/other permission bits masked out.
|
|
Throwing wrappers for file functions.
◆ copy()
static Shellbox\FileUtils::copy |
( |
| $source, |
|
|
| $dest ) |
|
static |
Copy file.
- Parameters
-
string | $source | |
string | $dest | |
- Exceptions
-
◆ getContents()
static Shellbox\FileUtils::getContents |
( |
| $path | ) |
|
|
static |
Get contents.
- Parameters
-
- Returns
- string
- 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: