|
| __construct (string $baseFolderPath) |
|
| createFileWithContents (string $parentFolderPath, string $fileName, string $fileContents) |
| Creates a file with the given name and content in the given folder.
|
|
| createFolder (string $parentFolderPath, string $folderName) |
| Creates an empty folder with the given name under the given parent folder.
|
|
| deleteFile (string $filePath) |
| Delete the file at the given path.
|
|
| deleteFolderRecursively (string $folderPath) |
| Delete the folder at the given path as well as all its contents.
|
|
| getBaseFolderRealPath () |
|
◆ __construct()
OpenSpout\Common\Helper\FileSystemHelper::__construct |
( |
string | $baseFolderPath | ) |
|
- Parameters
-
string | $baseFolderPath | The path of the base folder where all the I/O can occur |
◆ createFileWithContents()
OpenSpout\Common\Helper\FileSystemHelper::createFileWithContents |
( |
string | $parentFolderPath, |
|
|
string | $fileName, |
|
|
string | $fileContents ) |
Creates a file with the given name and content in the given folder.
The parent folder must exist.
- Parameters
-
string | $parentFolderPath | The parent folder path where the file is going to be created |
string | $fileName | The name of the file to create |
string | $fileContents | The contents of the file to create |
- Return values
-
string | Path of the created file |
- Exceptions
-
Implements OpenSpout\Common\Helper\FileSystemHelperInterface.
◆ createFolder()
OpenSpout\Common\Helper\FileSystemHelper::createFolder |
( |
string | $parentFolderPath, |
|
|
string | $folderName ) |
Creates an empty folder with the given name under the given parent folder.
- Parameters
-
string | $parentFolderPath | The parent folder path under which the folder is going to be created |
string | $folderName | The name of the folder to create |
- Return values
-
string | Path of the created folder |
- Exceptions
-
Implements OpenSpout\Common\Helper\FileSystemHelperInterface.
◆ deleteFile()
OpenSpout\Common\Helper\FileSystemHelper::deleteFile |
( |
string | $filePath | ) |
|
◆ deleteFolderRecursively()
OpenSpout\Common\Helper\FileSystemHelper::deleteFolderRecursively |
( |
string | $folderPath | ) |
|
The documentation for this class was generated from the following file:
- lib/openspout/src/Common/Helper/FileSystemHelper.php