use Org\Mxchange\CoreFramework\Filesystem\File\BaseBinaryFile;
use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+// Import SPL stuff
+use \SplFileInfo;
+
/**
* An index file class
*
/**
* Creates an instance of this File class and prepares it for usage
*
- * @param $fileName Name of the index file
+ * @param $fileInfoInstance An instance of a SplFileInfo class
* @param $blockInstance An instance of a Block class
* @return $fileInstance An instance of this File class
*/
- public final static function createIndexFile ($fileName, Block $blockInstance) {
+ public final static function createIndexFile (SplFileInfo $fileInfoInstance, Block $blockInstance) {
// Get a new instance
$fileInstance = new IndexFile();
$fileInstance->setBlockInstance($blockInstance);
// Init this abstract file
- $fileInstance->initFile($fileName);
+ $fileInstance->initFile($fileInfoInstance);
// Return the prepared instance
return $fileInstance;