FilesystemHelper
in package
implements
FilesystemHelperInterface, CrossCuttingObjectInterface
Class FilesystemHelper
Tags
Interfaces, Classes and Traits
- FilesystemHelperInterface
- Interface FilesystemHelperInterface
- CrossCuttingObjectInterface
- Interface CrossCuttingObjectInterface
Table of Contents
- correctFileTypeExtension() : FilenameStringType
- Returns the target file name with an ensured file extension. If the target file name has no file type extension it will be automatically added, by using the extension from the source file name.
Methods
correctFileTypeExtension()
Returns the target file name with an ensured file extension. If the target file name has no file type extension it will be automatically added, by using the extension from the source file name.
public
correctFileTypeExtension(FilenameStringType $sourceFile, FilenameStringType $targetFile) : FilenameStringType
Parameters
- $sourceFile : FilenameStringType
- $targetFile : FilenameStringType